summaryrefslogtreecommitdiff
path: root/src/menu.h
diff options
context:
space:
mode:
authorAndrzej Rybczak <electricityispower@gmail.com>2012-08-31 06:05:29 +0200
committerAndrzej Rybczak <electricityispower@gmail.com>2012-08-31 06:05:29 +0200
commit04bbdc53fc3bb34504d20cbaaf9275c03d33d311 (patch)
tree7379d100341dff09874452cba18f82673ed12f76 /src/menu.h
parent970727fab24946a608bfbfab52e830f4edf2662d (diff)
menu: get rid of RealChoice
Diffstat (limited to 'src/menu.h')
-rw-r--r--src/menu.h14
1 files changed, 0 insertions, 14 deletions
diff --git a/src/menu.h b/src/menu.h
index eebc990e..e8acfad1 100644
--- a/src/menu.h
+++ b/src/menu.h
@@ -337,11 +337,6 @@ template <typename T> struct Menu : public Window, public List
///
size_t Choice() const;
- /// @return real current positions, i.e it doesn't
- /// count positions that are static or separators
- ///
- size_t RealChoice() const;
-
/// Searches the list for a given contraint. It uses ItemStringifier to convert stored items
/// into strings and then performs pattern matching. Note that this supports regular expressions.
/// @param constraint a search constraint to be used
@@ -931,15 +926,6 @@ template <typename T> size_t Menu<T>::Choice() const
return m_highlight;
}
-template <typename T> size_t Menu<T>::RealChoice() const
-{
- size_t result = 0;
- for (auto it = m_options_ptr->begin(); it != m_options_ptr->begin()+m_highlight; ++it)
- if (!(*it)->isInactive())
- result++;
- return result;
-}
-
template <typename T> void Menu<T>::ReverseSelection(size_t beginning)
{
auto it = m_options_ptr->begin()+beginning;