Cleanup: remove unused code
authorCampbell Barton <ideasman42@gmail.com>
Fri, 29 Jan 2016 03:31:29 +0000 (14:31 +1100)
committerCampbell Barton <ideasman42@gmail.com>
Fri, 29 Jan 2016 04:12:57 +0000 (15:12 +1100)
source/blender/editors/space_sequencer/sequencer_edit.c
source/blender/windowmanager/intern/wm_playanim.c

index 9d96226027afd1f10fc923251d629aef5b02e806..54e9b65e3b3f5b183e8d53a1423b0d879e9349d6 100644 (file)
@@ -35,7 +35,6 @@
 #include "MEM_guardedalloc.h"
 
 #include "BLI_blenlib.h"
-#include "BLI_fileops.h"
 #include "BLI_ghash.h"
 #include "BLI_math.h"
 #include "BLI_timecode.h"
@@ -929,37 +928,6 @@ static bool sequence_offset_after_frame(Scene *scene, const int delta, const int
        return done;
 }
 
-static void UNUSED_FUNCTION(touch_seq_files) (Scene *scene)
-{
-       Sequence *seq;
-       Editing *ed = BKE_sequencer_editing_get(scene, false);
-       char str[256];
-
-       /* touch all strips with movies */
-       
-       if (ed == NULL) return;
-
-       // XXX25 if (okee("Touch and print selected movies")==0) return;
-
-       WM_cursor_wait(1);
-
-       SEQP_BEGIN (ed, seq)
-       {
-               if (seq->flag & SELECT) {
-                       if (seq->type == SEQ_TYPE_MOVIE) {
-                               if (seq->strip && seq->strip->stripdata) {
-                                       BLI_make_file_string(G.main->name, str, seq->strip->dir, seq->strip->stripdata->name);
-                                       BLI_file_touch(seq->name);
-                               }
-                       }
-
-               }
-       }
-       SEQ_END
-
-       WM_cursor_wait(0);
-}
-
 #if 0
 static void set_filter_seq(Scene *scene)
 {
index eadb87518c0f49b52dc56ff7163921746036acd1..675958cf0a3731cf36e616aa2c6de6c7b7ee8df5 100644 (file)
@@ -1238,12 +1238,6 @@ static char *wm_main_playanim_intern(int argc, const char **argv)
                exit(1);
        }
 
-#if 0 //XXX25
-#if !defined(WIN32) && !defined(__APPLE__)
-       if (fork()) exit(0);
-#endif
-#endif //XXX25
-
        {
 
                GHOST_EventConsumerHandle consumer = GHOST_CreateEventConsumer(ghost_event_proc, &ps);
@@ -1528,15 +1522,11 @@ static char *wm_main_playanim_intern(int argc, const char **argv)
        AUD_Sound_free(source);
        source = NULL;
 #endif
-
-#if 0 // XXX25
-       free_blender();
-#else
        /* we still miss freeing a lot!,
         * but many areas could skip initialization too for anim play */
        
        BLF_exit();
-#endif
+
        GHOST_DisposeWindow(g_WS.ghost_system, g_WS.ghost_window);
 
        /* early exit, IMB and BKE should be exited only in end */