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
diff options
context:
space:
mode:
authorBrecht Van Lommel <brechtvanlommel@pandora.be>2011-07-04 17:33:47 +0400
committerBrecht Van Lommel <brechtvanlommel@pandora.be>2011-07-04 17:33:47 +0400
commit7e36a75b459302b02fdc5b85743de83782d68fa7 (patch)
tree8c0a437e5b060ee5a73b3f9f896de1e9144177c0 /source/blender/blenlib/intern/path_util.c
parent398807e235c76a48e7759a1dedd6a3b051bb8822 (diff)
Paths: remove some temporary code that was only needed for 2.57.
Diffstat (limited to 'source/blender/blenlib/intern/path_util.c')
-rw-r--r--source/blender/blenlib/intern/path_util.c35
1 files changed, 1 insertions, 34 deletions
diff --git a/source/blender/blenlib/intern/path_util.c b/source/blender/blenlib/intern/path_util.c
index af87707fb90..80b85661762 100644
--- a/source/blender/blenlib/intern/path_util.c
+++ b/source/blender/blenlib/intern/path_util.c
@@ -1024,26 +1024,6 @@ static int get_path_system(char *targetpath, const char *folder_name, const char
}
}
-#if defined(WIN32) && BLENDER_VERSION < 258
-
-static int path_have_257_script_install(void)
-{
- const int ver= BLENDER_VERSION;
- char path[FILE_MAX] = "";
- char system_pyfile[FILE_MAX];
-
- if (get_path_user(path, "scripts", NULL, "BLENDER_USER_SCRIPTS", ver)) {
- BLI_join_dirfile(system_pyfile, sizeof(system_pyfile), path, "modules/bpy_types.py");
-
- if (BLI_exists(system_pyfile))
- return 1;
- }
-
- return 0;
-}
-
-#endif
-
/* get a folder out of the 'folder_id' presets for paths */
/* returns the path if found, NULL string if not */
char *BLI_get_folder(int folder_id, const char *subfolder)
@@ -1076,20 +1056,7 @@ char *BLI_get_folder(int folder_id, const char *subfolder)
return NULL;
case BLENDER_USER_SCRIPTS:
-#if defined(WIN32) && BLENDER_VERSION < 258
- /* if we have a 2.57 installation, then we may have system script
- * files in the user configuration folder. avoid using that folder
- * if they are there, until the version gets bumped to 2.58, so
- * we can be sure that folder only has addons etc. */
- if (path_have_257_script_install()) {
- if (get_path_local(path, "scripts", subfolder, ver)) break;
- }
- else
-#endif
- {
- if (get_path_user(path, "scripts", subfolder, "BLENDER_USER_SCRIPTS", ver)) break;
- }
-
+ if (get_path_user(path, "scripts", subfolder, "BLENDER_USER_SCRIPTS", ver)) break;
return NULL;
case BLENDER_SYSTEM_SCRIPTS: