Cleanup: remove unused code
authorCampbell Barton <ideasman42@gmail.com>
Thu, 11 Apr 2019 14:58:42 +0000 (00:58 +1000)
committerCampbell Barton <ideasman42@gmail.com>
Thu, 11 Apr 2019 15:01:50 +0000 (01:01 +1000)
This variable was never used.

source/blender/blenkernel/intern/font.c

index 9b18471..c779f05 100644 (file)
@@ -431,17 +431,6 @@ static void buildchar(Curve *cu, ListBase *nubase, unsigned int character, CharI
        vfd = vfont_get_data(which_vfont(cu, info));
        if (!vfd) return;
 
-#if 0
-       if (cu->selend < cu->selstart) {
-               if ((charidx >= (cu->selend)) && (charidx <= (cu->selstart - 2)))
-                       sel = 1;
-       }
-       else {
-               if ((charidx >= (cu->selstart - 1)) && (charidx <= (cu->selend - 1)))
-                       sel = 1;
-       }
-#endif
-
        /* make a copy at distance ofsx, ofsy with shear */
        shear = cu->shear;
        si = sinf(rot);