gui: Fix GCC warning in page-file source file.
authorBen Pfaff <blp@cs.stanford.edu>
Wed, 27 Mar 2013 04:35:17 +0000 (21:35 -0700)
committerBen Pfaff <blp@cs.stanford.edu>
Wed, 27 Mar 2013 04:38:12 +0000 (21:38 -0700)
src/ui/gui/page-file.c: In function 'init_file':
src/ui/gui/page-file.c:84:35: warning: variable 'opts' set but not
    used

src/ui/gui/page-file.c

index a65b2105382ca0894aa498abb23485968aaac6d1..2dd9f9ca1616670dec965af3311feb392dc11260 100644 (file)
@@ -81,21 +81,12 @@ init_file (struct import_assistant *ia, GtkWindow *parent_window)
 {
   enum { MAX_LINE_LEN = 16384 }; /* Max length of an acceptable line. */
   struct file *file = &ia->file;
-  struct spreadsheet_read_options opts;
 
   file->lines = NULL;
   file->file_name = choose_file (parent_window, &file->encoding);
   if (file->file_name == NULL)
     return false;
 
-  opts.sheet_name = NULL;
-  opts.cell_range = NULL;
-  opts.sheet_index = 1;
-
-  opts.read_names = true;
-  opts.asw = -1;
-
-
   if (ia->spreadsheet == NULL)
     ia->spreadsheet = gnumeric_probe (file->file_name, false);