summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2018-03-09 02:30:24 +0300
committerAndrei Karas <akaras@inbox.ru>2018-03-09 02:30:24 +0300
commitba123462244ed8e28c87ab43cbefe360d23ff8b2 (patch)
tree069411301ca59d8c2135219908fc50a10f7d840e
parentaa7119314e1a33d908b98906d30be94eb116d02d (diff)
downloadplus-ba123462244ed8e28c87ab43cbefe360d23ff8b2.tar.gz
plus-ba123462244ed8e28c87ab43cbefe360d23ff8b2.tar.bz2
plus-ba123462244ed8e28c87ab43cbefe360d23ff8b2.tar.xz
plus-ba123462244ed8e28c87ab43cbefe360d23ff8b2.zip
Remove unused button constructor.
-rw-r--r--src/gui/widgets/button.cpp54
-rw-r--r--src/gui/widgets/button.h11
2 files changed, 0 insertions, 65 deletions
diff --git a/src/gui/widgets/button.cpp b/src/gui/widgets/button.cpp
index dc3a7d063..7c4668126 100644
--- a/src/gui/widgets/button.cpp
+++ b/src/gui/widgets/button.cpp
@@ -303,60 +303,6 @@ Button::Button(const Widget2 *const widget,
addActionListener(listener);
}
-Button::Button(const Widget2 *const widget,
- const std::string &restrict caption,
- const std::string &restrict imageName,
- const std::string &restrict actionEventId,
- const std::string &restrict skinName,
- ActionListener *const listener) :
- Widget(widget),
- MouseListener(),
- KeyListener(),
- FocusListener(),
- WidgetListener(),
- mSkin(),
- mCaption(caption),
- mDescription(),
- mSkinName(skinName),
- mTextChunk(),
- mVertexes2(new ImageCollection),
- mEnabledColor(getThemeColor(ThemeColorId::BUTTON, 255U)),
- mEnabledColor2(getThemeColor(ThemeColorId::BUTTON_OUTLINE, 255U)),
- mDisabledColor(getThemeColor(ThemeColorId::BUTTON_DISABLED, 255U)),
- mDisabledColor2(getThemeColor(ThemeColorId::BUTTON_DISABLED_OUTLINE,
- 255U)),
- mHighlightedColor(getThemeColor(ThemeColorId::BUTTON_HIGHLIGHTED, 255U)),
- mHighlightedColor2(getThemeColor(
- ThemeColorId::BUTTON_HIGHLIGHTED_OUTLINE, 255U)),
- mPressedColor(getThemeColor(ThemeColorId::BUTTON_PRESSED, 255U)),
- mPressedColor2(getThemeColor(ThemeColorId::BUTTON_PRESSED_OUTLINE, 255U)),
- mImages(nullptr),
- mImageSet(nullptr),
- mAlignment(Graphics::CENTER),
- mClickCount(0),
- mSpacing(),
- mTag(0),
- mMode(0),
- mXOffset(0),
- mYOffset(0),
- mImageWidth(0),
- mImageHeight(0),
- mHasMouse(false),
- mKeyPressed(false),
- mMousePressed(false),
- mStick(false),
- mPressed(false),
- mTextChanged(true)
-{
- init();
- loadImage(imageName);
- adjustSize();
- setActionEventId(actionEventId);
-
- if (listener != nullptr)
- addActionListener(listener);
-}
-
void Button::init()
{
mAllowLogic = false;
diff --git a/src/gui/widgets/button.h b/src/gui/widgets/button.h
index 92ab1fa41..447ef8192 100644
--- a/src/gui/widgets/button.h
+++ b/src/gui/widgets/button.h
@@ -139,17 +139,6 @@ class Button final : public Widget,
const std::string &restrict skinName,
ActionListener *const listener);
- /**
- * Constructor, sets the caption of the button to the given string and
- * adds the given action listener.
- */
- Button(const Widget2 *const widget,
- const std::string &restrict imageName,
- const std::string &restrict caption,
- const std::string &restrict actionEventId,
- const std::string &restrict skinName,
- ActionListener *const listener);
-
A_DELETE_COPY(Button)
/**