Commit 87f2e50f authored by Murray Cumming's avatar Murray Cumming
Browse files

LayoutWidgetField: Remove unused get_has_original_data().

Found by cppcheck.
parent 4b4ee394
......@@ -221,11 +221,6 @@ AppWindow* ImageGlom::get_appwindow() const
return dynamic_cast<AppWindow*>(pWindow);
bool ImageGlom::get_has_original_data() const
return true; //TODO.
void ImageGlom::set_pixbuf(const Glib::RefPtr<Gdk::Pixbuf>& pixbuf)
......@@ -53,7 +53,6 @@ public:
void set_value(const Gnome::Gda::Value& value) override;
Gnome::Gda::Value get_value() const override;
bool get_has_original_data() const override;
//Optionally use this instead of set_value(), to avoid creating an unnecessary Value.
//void set_pixbuf(const Glib::RefPtr<Gdk::Pixbuf>& pixbuf);
......@@ -33,11 +33,4 @@ LayoutWidgetField::type_signal_edited LayoutWidgetField::signal_edited()
return m_signal_edited;
bool LayoutWidgetField::get_has_original_data() const
//Most widgets always have the original data.
//Override this method for widgets that don't.
return true;
} //namespace Glom
......@@ -35,11 +35,6 @@ public:
virtual Gnome::Gda::Value get_value() const = 0;
/** Whether this widget still has the original entered data, instead of just a representation.
* For instance, an image widget might only store a preview.
virtual bool get_has_original_data() const;
typedef sigc::signal<void> type_signal_edited;
type_signal_edited signal_edited();
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment