Cleanup: unused code
authorCampbell Barton <ideasman42@gmail.com>
Thu, 17 Jan 2019 00:17:45 +0000 (11:17 +1100)
committerCampbell Barton <ideasman42@gmail.com>
Thu, 17 Jan 2019 00:17:45 +0000 (11:17 +1100)
source/blender/blenkernel/intern/softbody.c
source/blender/gpu/intern/gpu_draw.c

index 3696431f7ff987671c1c9433c2ec5ba171d36b32..f3f7eefc01ceffca3472263c93f2992297662667 100644 (file)
@@ -1503,16 +1503,6 @@ static void _scan_for_ext_spring_forces(Scene *scene, Object *ob, float timenow,
        }
 }
 
-
-static void scan_for_ext_spring_forces(struct Depsgraph *depsgraph, Scene *scene, Object *ob, float timenow)
-{
-       SoftBody *sb = ob->soft;
-
-       ListBase *effectors = BKE_effectors_create(depsgraph, ob, NULL, sb->effector_weights);
-       _scan_for_ext_spring_forces(scene, ob, timenow, 0, sb->totspring, effectors);
-       BKE_effectors_free(effectors);
-}
-
 static void *exec_scan_for_ext_spring_forces(void *data)
 {
        SB_thread_context *pctx = (SB_thread_context*)data;
index 7c06555f255d502f27c6232d4a68891f70bf9342..a9e11c50648039116eb82d9b3a1d04c25ef15cd5 100644 (file)
@@ -437,9 +437,6 @@ void GPU_create_gl_tex(
 {
        ImBuf *ibuf = NULL;
 
-       int tpx = rectw;
-       int tpy = recth;
-
        /* create image */
        glGenTextures(1, (GLuint *)bind);
        glBindTexture(textarget, *bind);