Remove (now) unused ISettings::get/setCenterOnZoom()

This commit is contained in:
David Capello 2015-05-13 10:34:00 -03:00
parent aea07d06af
commit c42ca3200f
3 changed files with 0 additions and 17 deletions

View File

@ -44,7 +44,6 @@ namespace app {
virtual ~ISettings() { }
// General settings
virtual bool getCenterOnZoom() = 0;
virtual bool getShowSpriteEditorScrollbars() = 0;
virtual RightClickMode getRightClickMode() = 0;
virtual bool getGrabAlpha() = 0;
@ -54,7 +53,6 @@ namespace app {
virtual tools::Tool* getCurrentTool() = 0;
virtual app::ColorSwatches* getColorSwatches() = 0;
virtual void setCenterOnZoom(bool state) = 0;
virtual void setShowSpriteEditorScrollbars(bool state) = 0;
virtual void setRightClickMode(RightClickMode mode) = 0;
virtual void setGrabAlpha(bool state) = 0;

View File

@ -78,7 +78,6 @@ UISettingsImpl::UISettingsImpl()
: m_currentTool(NULL)
, m_colorSwatches(NULL)
, m_selectionSettings(new UISelectionSettingsImpl)
, m_centerOnZoom(get_config_bool("Editor", "CenterOnZoom", false))
, m_showSpriteEditorScrollbars(get_config_bool("Options", "ShowScrollbars", true))
, m_grabAlpha(get_config_bool("Options", "GrabAlpha", false))
, m_autoSelectLayer(get_config_bool("Options", "AutoSelectLayer", false))
@ -94,7 +93,6 @@ UISettingsImpl::UISettingsImpl()
UISettingsImpl::~UISettingsImpl()
{
set_config_bool("Editor", "CenterOnZoom", m_centerOnZoom);
set_config_bool("Options", "ShowScrollbars", m_showSpriteEditorScrollbars);
set_config_bool("Options", "GrabAlpha", m_grabAlpha);
set_config_bool("Options", "AutoSelectLayer", m_autoSelectLayer);
@ -110,11 +108,6 @@ UISettingsImpl::~UISettingsImpl()
//////////////////////////////////////////////////////////////////////
// General settings
bool UISettingsImpl::getCenterOnZoom()
{
return m_centerOnZoom;
}
bool UISettingsImpl::getShowSpriteEditorScrollbars()
{
return m_showSpriteEditorScrollbars;
@ -160,11 +153,6 @@ app::ColorSwatches* UISettingsImpl::getColorSwatches()
return m_colorSwatches;
}
void UISettingsImpl::setCenterOnZoom(bool state)
{
m_centerOnZoom = state;
}
void UISettingsImpl::setShowSpriteEditorScrollbars(bool state)
{
m_showSpriteEditorScrollbars = state;

View File

@ -30,7 +30,6 @@ namespace app {
~UISettingsImpl();
// ISettings implementation
bool getCenterOnZoom() override;
bool getShowSpriteEditorScrollbars() override;
RightClickMode getRightClickMode() override;
bool getGrabAlpha() override;
@ -40,7 +39,6 @@ namespace app {
tools::Tool* getCurrentTool() override;
app::ColorSwatches* getColorSwatches() override;
void setCenterOnZoom(bool state) override;
void setShowSpriteEditorScrollbars(bool state) override;
void setRightClickMode(RightClickMode mode) override;
void setGrabAlpha(bool state) override;
@ -69,7 +67,6 @@ namespace app {
app::ColorSwatches* m_colorSwatches;
std::vector<app::ColorSwatches*> m_colorSwatchesStore;
base::UniquePtr<ISelectionSettings> m_selectionSettings;
bool m_centerOnZoom;
bool m_showSpriteEditorScrollbars;
bool m_grabAlpha;
bool m_autoSelectLayer;