From: cilix42 Date: Sun, 9 Aug 2009 16:43:14 +0000 (+0000) Subject: Cleanup (remove unused variable; use generic function to determine the file extension) X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=081a843d20a46d9526f6be83a913635cf5717188;p=inkscape.git Cleanup (remove unused variable; use generic function to determine the file extension) --- diff --git a/src/dialogs/export.cpp b/src/dialogs/export.cpp index 835003e5e..ee7852924 100644 --- a/src/dialogs/export.cpp +++ b/src/dialogs/export.cpp @@ -540,7 +540,7 @@ sp_export_dialog (void) gchar *name; SPDocument * doc = SP_ACTIVE_DOCUMENT; const gchar *uri = SP_DOCUMENT_URI (doc); - const gchar *text_extension = Inkscape::Preferences::get()->getString("/dialogs/save_as/default").c_str(); + const gchar *text_extension = get_file_save_extension (Inkscape::Extension::FILE_SAVE_METHOD_SAVE_AS).c_str(); Inkscape::Extension::Output * oextension = NULL; if (text_extension != NULL) { diff --git a/src/file.cpp b/src/file.cpp index 03fb7bd59..8f40d7e4b 100644 --- a/src/file.cpp +++ b/src/file.cpp @@ -1141,7 +1141,6 @@ sp_file_export_dialog(void *widget) Glib::ustring export_path; Glib::ustring export_loc; - Inkscape::XML::Node *repr = sp_document_repr_root(doc); Inkscape::Preferences *prefs = Inkscape::Preferences::get(); Inkscape::Extension::Output *extension;