summaryrefslogtreecommitdiff
path: root/src/gui/widgets/browserbox.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/gui/widgets/browserbox.h')
-rw-r--r--src/gui/widgets/browserbox.h18
1 files changed, 4 insertions, 14 deletions
diff --git a/src/gui/widgets/browserbox.h b/src/gui/widgets/browserbox.h
index ceb4b1b3f..591d83a07 100644
--- a/src/gui/widgets/browserbox.h
+++ b/src/gui/widgets/browserbox.h
@@ -117,12 +117,6 @@ class BrowserBox final : public gcn::Widget,
{ mMaxRows = max; };
/**
- * Disable links & user defined colors to be used in chat input.
- */
-/*
- void disableLinksAndUserColors();
-*/
- /**
* Adds a text row to the browser.
*/
void addRow(const std::string &row, const bool atTop = false);
@@ -139,10 +133,6 @@ class BrowserBox final : public gcn::Widget,
*/
void clearRows();
-// void setSize(int width, int height);
-
-// void widgetResized(const gcn::Event &event);
-
/**
* Handles mouse actions.
*/
@@ -192,10 +182,10 @@ class BrowserBox final : public gcn::Widget,
typedef std::list<std::string> TextRows;
- TextRows &getRows()
+ TextRows &getRows() A_WARN_UNUSED
{ return mTextRows; }
- bool hasRows() const
+ bool hasRows() const A_WARN_UNUSED
{ return !mTextRows.empty(); }
void setAlwaysUpdate(bool n)
@@ -207,10 +197,10 @@ class BrowserBox final : public gcn::Widget,
void setEnableImages(bool n)
{ mEnableImages = n; }
- std::string getTextAtPos(const int x, const int y) const;
+ std::string getTextAtPos(const int x, const int y) const A_WARN_UNUSED;
private:
- int calcHeight();
+ int calcHeight() A_WARN_UNUSED;
typedef TextRows::iterator TextRowIterator;
typedef TextRows::const_iterator TextRowCIter;