diff options
author | Campbell Barton <ideasman42@gmail.com> | 2011-05-01 14:14:09 +0400 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2011-05-01 14:14:09 +0400 |
commit | 1093f69e506e56e0bf605c44aefc34d6f9bc27fe (patch) | |
tree | d639e38ba6021c1e307bca0ba31a54f47a1fdec4 /source/blender/editors/space_file | |
parent | b6ec6e5ca54ae7d5747f7aa6412be1ab6103ce2d (diff) |
Style Cleanup
- duplicate cases in if/else
- calc inside sizeof(...)
- redundant NULL checks.
- assignment to self.
- fix error getting text prefix for screen ID button.
Diffstat (limited to 'source/blender/editors/space_file')
-rw-r--r-- | source/blender/editors/space_file/file_draw.c | 2 | ||||
-rw-r--r-- | source/blender/editors/space_file/filelist.c | 2 |
2 files changed, 0 insertions, 4 deletions
diff --git a/source/blender/editors/space_file/file_draw.c b/source/blender/editors/space_file/file_draw.c index bf7501ae5ce..903af649caa 100644 --- a/source/blender/editors/space_file/file_draw.c +++ b/source/blender/editors/space_file/file_draw.c @@ -269,8 +269,6 @@ static int get_file_icon(struct direntry *file) return ICON_FILE_MOVIE; else if (file->flags & PYSCRIPTFILE) return ICON_FILE_SCRIPT; - else if (file->flags & PYSCRIPTFILE) - return ICON_FILE_SCRIPT; else if (file->flags & SOUNDFILE) return ICON_FILE_SOUND; else if (file->flags & FTFONTFILE) diff --git a/source/blender/editors/space_file/filelist.c b/source/blender/editors/space_file/filelist.c index 0a8ae56c291..b097ad0f55e 100644 --- a/source/blender/editors/space_file/filelist.c +++ b/source/blender/editors/space_file/filelist.c @@ -797,8 +797,6 @@ int ED_file_extension_icon(char *relname) return ICON_FILE_MOVIE; else if (type == PYSCRIPTFILE) return ICON_FILE_SCRIPT; - else if (type == PYSCRIPTFILE) - return ICON_FILE_SCRIPT; else if (type == SOUNDFILE) return ICON_FILE_SOUND; else if (type == FTFONTFILE) |