remove brush_sample_falloff, #if 0, unused function is_tablet_cursor
[blender.git] / source / blender / blenkernel / intern / brush.c
index 9ae0863a78ac95a9c7e3a13dd23ba62ea3e5123b..6c23d4260ae0aefd16cf12c816650035fffe0ddc 100644 (file)
@@ -379,36 +379,6 @@ void brush_check_exists(Brush **brush, const char *name)
 }
 
 /* Brush Sampling */
-
-/*static float taylor_approx_cos(float f)
-{
-       f = f*f;
-       f = 1.0f - f/2.0f + f*f/24.0f;
-       return f;
-}*/
-
-float brush_sample_falloff(Brush *brush, float dist)
-{
-       float a, outer, inner;
-
-       outer = brush->size >> 1;
-       inner = outer*brush->innerradius;
-
-       if (dist <= inner) {
-               return brush->alpha;
-       }
-       else if ((dist < outer) && (inner < outer)) {
-               a = sqrt((dist - inner)/(outer - inner));
-               return (1 - a)*brush->alpha;
-
-               /* formula used by sculpt, with taylor approx 
-               a = 0.5f*(taylor_approx_cos(3.0f*(dist - inner)/(outer - inner)) + 1.0f);
-               return a*brush->alpha; */
-       }
-       else 
-               return 0.0f;
-}
-
 void brush_sample_tex(Brush *brush, float *xy, float *rgba)
 {
        MTex *mtex= brush->mtex[brush->texact];