diff options
author | Sergey Sharybin <sergey.vfx@gmail.com> | 2012-07-31 21:24:55 +0400 |
---|---|---|
committer | Sergey Sharybin <sergey.vfx@gmail.com> | 2012-07-31 21:24:55 +0400 |
commit | e597234cb52a0530f60f2e135536572416caf490 (patch) | |
tree | 73046b5b0830db19d66762b359ee5a75d1e83f80 /source/blender | |
parent | b9f72394fddf69808deaa4f66668cb4f62ff9f7e (diff) |
Code cleanup: remove unused code
Diffstat (limited to 'source/blender')
-rw-r--r-- | source/blender/editors/mask/mask_add.c | 3 | ||||
-rw-r--r-- | source/blender/editors/mask/mask_ops.c | 6 |
2 files changed, 3 insertions, 6 deletions
diff --git a/source/blender/editors/mask/mask_add.c b/source/blender/editors/mask/mask_add.c index 958fad56b0c..c928e90b422 100644 --- a/source/blender/editors/mask/mask_add.c +++ b/source/blender/editors/mask/mask_add.c @@ -67,10 +67,9 @@ static int find_nearest_diff_point(const bContext *C, Mask *mask, const float no float dist, co[2]; int width, height; float u; - float scalex, scaley, aspx, aspy; + float scalex, scaley; ED_mask_get_size(sa, &width, &height); - ED_mask_get_aspect(sa, ar, &aspx, &aspy); ED_mask_pixelspace_factor(sa, ar, &scalex, &scaley); co[0] = normal_co[0] * scalex; diff --git a/source/blender/editors/mask/mask_ops.c b/source/blender/editors/mask/mask_ops.c index b1b3e0cf6c8..7ee9eec34b5 100644 --- a/source/blender/editors/mask/mask_ops.c +++ b/source/blender/editors/mask/mask_ops.c @@ -69,12 +69,11 @@ MaskSplinePoint *ED_mask_point_find_nearest(const bContext *C, Mask *mask, float MaskLayer *point_masklay = NULL; MaskSpline *point_spline = NULL; MaskSplinePoint *point = NULL; - float co[2], aspx, aspy; + float co[2]; float len = FLT_MAX, scalex, scaley; int is_handle = FALSE, width, height; ED_mask_get_size(sa, &width, &height); - ED_mask_get_aspect(sa, ar, &aspx, &aspy); ED_mask_pixelspace_factor(sa, ar, &scalex, &scaley); co[0] = normal_co[0] * scalex; @@ -169,11 +168,10 @@ int ED_mask_feather_find_nearest(const bContext *C, Mask *mask, float normal_co[ MaskSplinePoint *point = NULL; MaskSplinePointUW *uw = NULL; float len = FLT_MAX, co[2]; - float scalex, scaley, aspx, aspy; + float scalex, scaley; int width, height; ED_mask_get_size(sa, &width, &height); - ED_mask_get_aspect(sa, ar, &aspx, &aspy); ED_mask_pixelspace_factor(sa, ar, &scalex, &scaley); co[0] = normal_co[0] * scalex; |