code cleanup:
[blender.git] / source / blender / editors / space_file / file_ops.c
index ba931b05214c3d121ea3b113e17e96160d4d0bf3..e3270d9ce8e02cf165cb545462238af10f07d2bd 100644 (file)
@@ -1460,23 +1460,22 @@ static int file_delete_poll(bContext *C)
 {
        int poll = ED_operator_file_active(C);
        SpaceFile *sfile = CTX_wm_space_file(C);
-       struct direntry *file;
 
-       if (sfile && sfile->params) {           
+       if (sfile && sfile->params) {
                char dir[FILE_MAX], group[FILE_MAX];
                int numfiles = filelist_numfiles(sfile->files);
                int i;
                int num_selected = 0;
 
                if (filelist_islibrary(sfile->files, dir, group)) poll = 0;
-               for (i = 0; i < numfiles; i++) {                                
+               for (i = 0; i < numfiles; i++) {
                        if (filelist_is_selected(sfile->files, i, CHECK_FILES)) {
                                num_selected++;
                        }
                }
                if (num_selected <= 0) {
                        poll = 0;
-               }               
+               }
        }
        else
                poll = 0;