diff --git a/source/blender/blenlib/intern/tempfile.cc b/source/blender/blenlib/intern/tempfile.cc index e2ba8e33993..32171e482b2 100644 --- a/source/blender/blenlib/intern/tempfile.cc +++ b/source/blender/blenlib/intern/tempfile.cc @@ -62,8 +62,6 @@ void BLI_temp_directory_path_get(char *tempdir, const size_t tempdir_maxncpy) #ifdef WIN32 "TEMP", #else - /* Non standard (could be removed). */ - "TMP", /* Posix standard. */ "TMPDIR", #endif diff --git a/source/creator/creator_args.cc b/source/creator/creator_args.cc index 03613db8872..1bf9f637cf8 100644 --- a/source/creator/creator_args.cc +++ b/source/creator/creator_args.cc @@ -874,7 +874,6 @@ static void print_help(bArgs *ba, bool all) PRINT(" $TEMP Store temporary files here (MS-Windows).\n"); } if (!defs.win32 || all) { - /* NOTE: while `TMP` checked, don't include here as it's non-standard & may be removed. */ PRINT(" $TMPDIR Store temporary files here (UNIX Systems).\n"); } PRINT( diff --git a/tests/python/bl_pyapi_bpy_app_tempdir.py b/tests/python/bl_pyapi_bpy_app_tempdir.py index d339f23229f..1b115122fdf 100644 --- a/tests/python/bl_pyapi_bpy_app_tempdir.py +++ b/tests/python/bl_pyapi_bpy_app_tempdir.py @@ -37,10 +37,6 @@ import tempfile is_win32 = os.name == "nt" TEMP_ENV = "TEMP" if is_win32 else "TMPDIR" -# TODO: remove this. Since it's checked, it must be removed! -if os.environ.get("TMP") is not None: - del os.environ["TMP"] - def system_temp_set(path: str) -> None: os.environ[TEMP_ENV] = path