Cleanup: remove unused auto-save read function
Also make wm_autosave_location a static function.
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
/** \} */
|
||||
|
||||
/* -------------------------------------------------------------------- */
|
||||
|
||||
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user