Cleanup: remove unused auto-save read function

Also make wm_autosave_location a static function.
This commit is contained in:
2021-03-15 14:09:26 +11:00
parent 6cd1520378
commit d611f2889e
2 changed files with 1 additions and 11 deletions

View File

@@ -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);
}
/** \} */
/* -------------------------------------------------------------------- */

View File

@@ -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);