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:
authorAndrea Weikert <elubie@gmx.net>2011-03-20 14:27:28 +0300
committerAndrea Weikert <elubie@gmx.net>2011-03-20 14:27:28 +0300
commit6be2d3aff98ceb179082c36b3a0e6afa3b3d39fe (patch)
treef5a2b456ffd63e5dd08e0f4546a20475db12ed4a /source/blender/editors/space_file
parente73a2020dd1450a709d8da53af9132e08c811226 (diff)
== filebrowser == Code cleanup
* remove commented out code
Diffstat (limited to 'source/blender/editors/space_file')
-rw-r--r--source/blender/editors/space_file/file_draw.c8
1 files changed, 0 insertions, 8 deletions
diff --git a/source/blender/editors/space_file/file_draw.c b/source/blender/editors/space_file/file_draw.c
index c8f4dc26e90..4f523f0ca76 100644
--- a/source/blender/editors/space_file/file_draw.c
+++ b/source/blender/editors/space_file/file_draw.c
@@ -401,10 +401,6 @@ static void renamebutton_cb(bContext *C, void *UNUSED(arg1), char *oldname)
SpaceFile *sfile= (SpaceFile*)CTX_wm_space_data(C);
ARegion* ar = CTX_wm_region(C);
-#if 0
- struct direntry *file = (struct direntry *)arg1;
-#endif
-
BLI_make_file_string(G.main->name, orgname, sfile->params->dir, oldname);
BLI_strncpy(filename, sfile->params->renameedit, sizeof(filename));
BLI_make_file_string(G.main->name, newname, sfile->params->dir, filename);
@@ -413,10 +409,6 @@ static void renamebutton_cb(bContext *C, void *UNUSED(arg1), char *oldname)
if (!BLI_exists(newname)) {
BLI_rename(orgname, newname);
/* to make sure we show what is on disk */
-#if 0 /* this is cleared anyway, no need */
- MEM_freeN(file->relname);
- file->relname= BLI_strdup(sfile->params->renameedit);
-#endif
ED_fileselect_clear(C, sfile);
}