From c0a88161b24b10e2f030939a71e58db59f169cfe Mon Sep 17 00:00:00 2001 From: scrawl Date: Thu, 29 Jan 2015 00:25:42 +0100 Subject: [PATCH] Get rid of unneeded setSize/setCoord overrides --- apps/openmw/mwgui/itemview.cpp | 10 ---------- apps/openmw/mwgui/itemview.hpp | 2 -- apps/openmw/mwgui/spellview.cpp | 10 ---------- apps/openmw/mwgui/spellview.hpp | 2 -- 4 files changed, 24 deletions(-) diff --git a/apps/openmw/mwgui/itemview.cpp b/apps/openmw/mwgui/itemview.cpp index 41c3604b4..e30f6e7a8 100644 --- a/apps/openmw/mwgui/itemview.cpp +++ b/apps/openmw/mwgui/itemview.cpp @@ -155,11 +155,6 @@ void ItemView::setSize(const MyGUI::IntSize &_value) layoutWidgets(); } -void ItemView::setSize(int _width, int _height) -{ - setSize(MyGUI::IntSize(_width, _height)); -} - void ItemView::setCoord(const MyGUI::IntCoord &_value) { bool changed = (_value.width != getWidth() || _value.height != getHeight()); @@ -168,11 +163,6 @@ void ItemView::setCoord(const MyGUI::IntCoord &_value) layoutWidgets(); } -void ItemView::setCoord(int _left, int _top, int _width, int _height) -{ - setCoord(MyGUI::IntCoord(_left, _top, _width, _height)); -} - void ItemView::registerComponents() { MyGUI::FactoryManager::getInstance().registerFactory("Widget"); diff --git a/apps/openmw/mwgui/itemview.hpp b/apps/openmw/mwgui/itemview.hpp index 1a5bd79a3..9aeba6752 100644 --- a/apps/openmw/mwgui/itemview.hpp +++ b/apps/openmw/mwgui/itemview.hpp @@ -37,8 +37,6 @@ namespace MWGui virtual void setSize(const MyGUI::IntSize& _value); virtual void setCoord(const MyGUI::IntCoord& _value); - void setSize(int _width, int _height); - void setCoord(int _left, int _top, int _width, int _height); void onSelectedItem (MyGUI::Widget* sender); void onSelectedBackground (MyGUI::Widget* sender); diff --git a/apps/openmw/mwgui/spellview.cpp b/apps/openmw/mwgui/spellview.cpp index 3e5a01e3a..1c17a11f6 100644 --- a/apps/openmw/mwgui/spellview.cpp +++ b/apps/openmw/mwgui/spellview.cpp @@ -201,11 +201,6 @@ namespace MWGui layoutWidgets(); } - void SpellView::setSize(int _width, int _height) - { - setSize(MyGUI::IntSize(_width, _height)); - } - void SpellView::setCoord(const MyGUI::IntCoord &_value) { bool changed = (_value.width != getWidth() || _value.height != getHeight()); @@ -214,11 +209,6 @@ namespace MWGui layoutWidgets(); } - void SpellView::setCoord(int _left, int _top, int _width, int _height) - { - setCoord(MyGUI::IntCoord(_left, _top, _width, _height)); - } - void SpellView::adjustSpellWidget(const Spell &spell, SpellModel::ModelIndex index, MyGUI::Widget *widget) { if (spell.mType == Spell::Type_EnchantedItem) diff --git a/apps/openmw/mwgui/spellview.hpp b/apps/openmw/mwgui/spellview.hpp index 30daf8671..005d206f4 100644 --- a/apps/openmw/mwgui/spellview.hpp +++ b/apps/openmw/mwgui/spellview.hpp @@ -45,8 +45,6 @@ namespace MWGui virtual void setSize(const MyGUI::IntSize& _value); virtual void setCoord(const MyGUI::IntCoord& _value); - void setSize(int _width, int _height); - void setCoord(int _left, int _top, int _width, int _height); private: MyGUI::ScrollView* mScrollView;