Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/source
diff options
context:
space:
mode:
authorCampbell Barton <ideasman42@gmail.com>2020-10-03 10:23:13 +0300
committerCampbell Barton <ideasman42@gmail.com>2020-10-03 11:49:15 +0300
commit10ae2ea4ae073c09a3b127d4a92915bbc4a61583 (patch)
tree217f3aeb03d00bc92b2e2d1ad651610d0cbd1ea4 /source
parent29a85682a0395f599f0500216061d4302493e800 (diff)
Cleanup: remove unused temp directory initialization
This last worked in v2.27 (2003) where all paths were initialized to "/" which was still checked to initialize the temp directory. This hasn't been the case since 932e9e831647604e0b129b55e5ab035 where it changed to "/tmp/", then an empty string (current default).
Diffstat (limited to 'source')
-rw-r--r--source/blender/blenkernel/BKE_appdir.h1
-rw-r--r--source/blender/blenkernel/intern/appdir.c8
-rw-r--r--source/blender/windowmanager/intern/wm_files.c3
3 files changed, 0 insertions, 12 deletions
diff --git a/source/blender/blenkernel/BKE_appdir.h b/source/blender/blenkernel/BKE_appdir.h
index b8a4497c7be..9223a60c8ef 100644
--- a/source/blender/blenkernel/BKE_appdir.h
+++ b/source/blender/blenkernel/BKE_appdir.h
@@ -60,7 +60,6 @@ bool BKE_appdir_program_python_search(char *fullpath,
/* Initialize path to temporary directory. */
void BKE_tempdir_init(char *userdir);
-void BKE_tempdir_system_init(char *dir);
const char *BKE_tempdir_base(void);
const char *BKE_tempdir_session(void);
diff --git a/source/blender/blenkernel/intern/appdir.c b/source/blender/blenkernel/intern/appdir.c
index 236f1391443..2f7b2cc480c 100644
--- a/source/blender/blenkernel/intern/appdir.c
+++ b/source/blender/blenkernel/intern/appdir.c
@@ -999,14 +999,6 @@ const char *BKE_tempdir_base(void)
}
/**
- * Path to the system temporary directory (with trailing slash)
- */
-void BKE_tempdir_system_init(char *dir)
-{
- where_is_temp(dir, NULL, FILE_MAX, NULL);
-}
-
-/**
* Delete content of this instance's temp dir.
*/
void BKE_tempdir_session_purge(void)
diff --git a/source/blender/windowmanager/intern/wm_files.c b/source/blender/windowmanager/intern/wm_files.c
index 44367969ed7..69b7c7bb1e3 100644
--- a/source/blender/windowmanager/intern/wm_files.c
+++ b/source/blender/windowmanager/intern/wm_files.c
@@ -415,9 +415,6 @@ static void wm_init_userdef(Main *bmain)
MEM_CacheLimiter_set_maximum(((size_t)U.memcachelimit) * 1024 * 1024);
BKE_sound_init(bmain);
- if (STREQ(U.tempdir, "/")) {
- BKE_tempdir_system_init(U.tempdir);
- }
/* Update `U.tempdir` from user preferences. */
BKE_tempdir_init(U.tempdir);