From def9948f0466c7507dfc98192caea35e5a0c7e42 Mon Sep 17 00:00:00 2001 From: dooglus Date: Mon, 17 Sep 2007 23:36:30 +0000 Subject: [PATCH] Removed more unused code. There were 4 'save_as' functions, and 2 of them were never used, so I removed them. git-svn-id: http://svn.voria.com/code@702 1f10aa63-cdf2-0310-b900-c93c546f37ac --- synfig-studio/trunk/src/gtkmm/instance.cpp | 11 ----------- synfig-studio/trunk/src/gtkmm/instance.h | 2 -- synfig-studio/trunk/src/synfigapp/instance.cpp | 14 -------------- synfig-studio/trunk/src/synfigapp/instance.h | 2 -- 4 files changed, 29 deletions(-) diff --git a/synfig-studio/trunk/src/gtkmm/instance.cpp b/synfig-studio/trunk/src/gtkmm/instance.cpp index 185acca..a67d7f7 100644 --- a/synfig-studio/trunk/src/gtkmm/instance.cpp +++ b/synfig-studio/trunk/src/gtkmm/instance.cpp @@ -185,17 +185,6 @@ Instance::set_redo_status(bool x) } bool -studio::Instance::save_as(const synfig::String &file_name)const -{ - if(synfigapp::Instance::save_as(file_name)) - { - App::add_recent_file(file_name); - return true; - } - return false; -} - -bool studio::Instance::save_as(const synfig::String &file_name) { if(synfigapp::Instance::save_as(file_name)) diff --git a/synfig-studio/trunk/src/gtkmm/instance.h b/synfig-studio/trunk/src/gtkmm/instance.h index 9f1c193..21b7b22 100644 --- a/synfig-studio/trunk/src/gtkmm/instance.h +++ b/synfig-studio/trunk/src/gtkmm/instance.h @@ -167,8 +167,6 @@ public: const CanvasViewList & canvas_view_list()const { return canvas_view_list_; } - bool save_as(const synfig::String &filename)const; - bool save_as(const synfig::String &filename); //! Opens a "Save As" dialog, and then saves the composition to that file diff --git a/synfig-studio/trunk/src/synfigapp/instance.cpp b/synfig-studio/trunk/src/synfigapp/instance.cpp index c4a9397..fd62d75 100644 --- a/synfig-studio/trunk/src/synfigapp/instance.cpp +++ b/synfig-studio/trunk/src/synfigapp/instance.cpp @@ -148,18 +148,6 @@ Instance::save()const } bool -Instance::save_as(const std::string &file_name)const -{ - bool ret=save_canvas(file_name,canvas_); - if(ret) - { - reset_action_count(); - const_cast& >(signal_saved_)(); - } - return ret; -} - -bool Instance::save_as(const std::string &file_name) { bool ret; @@ -176,9 +164,7 @@ Instance::save_as(const std::string &file_name) signal_saved_(); } else - { set_file_name(old_file_name); - } signal_filename_changed_(); diff --git a/synfig-studio/trunk/src/synfigapp/instance.h b/synfig-studio/trunk/src/synfigapp/instance.h index f52fdc9..19749ad 100644 --- a/synfig-studio/trunk/src/synfigapp/instance.h +++ b/synfig-studio/trunk/src/synfigapp/instance.h @@ -108,8 +108,6 @@ public: //! Saves the instance to filename_ bool save()const; - bool save_as(const synfig::String &filename)const; - bool save_as(const synfig::String &filename); public: // Interfaces to internal information -- 2.7.4