Removed more unused code. There were 4 'save_as' functions, and 2 of them were never...
authordooglus <dooglus@1f10aa63-cdf2-0310-b900-c93c546f37ac>
Mon, 17 Sep 2007 23:36:30 +0000 (23:36 +0000)
committerdooglus <dooglus@1f10aa63-cdf2-0310-b900-c93c546f37ac>
Mon, 17 Sep 2007 23:36:30 +0000 (23:36 +0000)
git-svn-id: http://svn.voria.com/code@702 1f10aa63-cdf2-0310-b900-c93c546f37ac

synfig-studio/trunk/src/gtkmm/instance.cpp
synfig-studio/trunk/src/gtkmm/instance.h
synfig-studio/trunk/src/synfigapp/instance.cpp
synfig-studio/trunk/src/synfigapp/instance.h

index 185acca..a67d7f7 100644 (file)
@@ -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))
index 9f1c193..21b7b22 100644 (file)
@@ -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
index c4a9397..fd62d75 100644 (file)
@@ -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<sigc::signal<void>& >(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_();
 
index f52fdc9..19749ad 100644 (file)
@@ -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