diff options
author | Campbell Barton <ideasman42@gmail.com> | 2021-03-15 06:09:26 +0300 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2021-03-15 06:48:17 +0300 |
commit | d611f2889ec78993d7d7e644c78b0e2775573da9 (patch) | |
tree | b9c3442dbd5f532d6fd5b3f5ab2d3b09b071e0f4 /source/blender/windowmanager | |
parent | 6cd15203788b80ab45cb2e7503de42e665a70869 (diff) |
Cleanup: remove unused auto-save read function
Also make wm_autosave_location a static function.
Diffstat (limited to 'source/blender/windowmanager')
-rw-r--r-- | source/blender/windowmanager/intern/wm_files.c | 10 | ||||
-rw-r--r-- | source/blender/windowmanager/wm.h | 2 |
2 files changed, 1 insertions, 11 deletions
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); |