diff --git a/source/blender/blenlib/intern/path_util.c b/source/blender/blenlib/intern/path_util.c index de1ca7ef742..0ad2ba049b4 100644 --- a/source/blender/blenlib/intern/path_util.c +++ b/source/blender/blenlib/intern/path_util.c @@ -365,14 +365,6 @@ void BLI_cleanup_path(const char *relabase, char *path) */ #ifdef WIN32 - - /* Note, this should really be moved to the file selector, - * since this function is used in many areas */ - if (strcmp(path, ".") == 0) { /* happens for example in FILE_MAIN */ - get_default_root(path); - return; - } - while ( (start = strstr(path, "\\..\\")) ) { eind = start + strlen("\\..\\") - 1; a = start - path - 1; @@ -400,12 +392,6 @@ void BLI_cleanup_path(const char *relabase, char *path) memmove(start, eind, strlen(eind) + 1); } #else - if (path[0] == '.') { /* happens, for example in FILE_MAIN */ - path[0] = '/'; - path[1] = 0; - return; - } - while ( (start = strstr(path, "/../")) ) { a = start - path - 1; if (a > 0) {