[Bf-blender-cvs] [d611f2889ec] master: Cleanup: remove unused auto-save read function

Campbell Barton noreply at git.blender.org
Mon Mar 15 04:54:12 CET 2021


Commit: d611f2889ec78993d7d7e644c78b0e2775573da9
Author: Campbell Barton
Date:   Mon Mar 15 14:09:26 2021 +1100
Branches: master
https://developer.blender.org/rBd611f2889ec78993d7d7e644c78b0e2775573da9

Cleanup: remove unused auto-save read function

Also make wm_autosave_location a static function.

===================================================================

M	source/blender/windowmanager/intern/wm_files.c
M	source/blender/windowmanager/wm.h

===================================================================

diff --git a/source/blender/windowmanager/intern/wm_files.c b/source/blender/windowmanager/intern/wm_files.c
index bada86b13aa..fb0b9ed39e4 100644
--- a/source/blender/windowmanager/intern/wm_files.c
+++ b/source/blender/windowmanager/intern/wm_files.c
@@ -1607,7 +1607,7 @@ static bool wm_file_write(bContext *C,
 /** \name Auto-Save API
  * \{ */
 
-void wm_autosave_location(char *filepath)
+static void wm_autosave_location(char *filepath)
 {
   const int pid = abs(getpid());
   char path[1024];
@@ -1722,14 +1722,6 @@ void wm_autosave_delete(void)
   }
 }
 
-void wm_autosave_read(bContext *C, ReportList *reports)
-{
-  char filename[FILE_MAX];
-
-  wm_autosave_location(filename);
-  WM_file_read(C, filename, reports);
-}
-
 /** \} */
 
 /* -------------------------------------------------------------------- */
diff --git a/source/blender/windowmanager/wm.h b/source/blender/windowmanager/wm.h
index a8009282f62..6fc44e82df0 100644
--- a/source/blender/windowmanager/wm.h
+++ b/source/blender/windowmanager/wm.h
@@ -77,8 +77,6 @@ void wm_jobs_timer_end(wmWindowManager *wm, wmTimer *wt);
 void wm_autosave_timer(struct Main *bmain, wmWindowManager *wm, wmTimer *wt);
 void wm_autosave_timer_end(wmWindowManager *wm);
 void wm_autosave_delete(void);
-void wm_autosave_read(bContext *C, struct ReportList *reports);
-void wm_autosave_location(char *filepath);
 
 /* wm_splash_screen.c */
 void WM_OT_splash(wmOperatorType *ot);



More information about the Bf-blender-cvs mailing list