diff options
author | Andrzej Rybczak <electricityispower@gmail.com> | 2012-08-31 06:05:29 +0200 |
---|---|---|
committer | Andrzej Rybczak <electricityispower@gmail.com> | 2012-08-31 06:05:29 +0200 |
commit | 04bbdc53fc3bb34504d20cbaaf9275c03d33d311 (patch) | |
tree | 7379d100341dff09874452cba18f82673ed12f76 /src/menu.h | |
parent | 970727fab24946a608bfbfab52e830f4edf2662d (diff) |
menu: get rid of RealChoice
Diffstat (limited to 'src/menu.h')
-rw-r--r-- | src/menu.h | 14 |
1 files changed, 0 insertions, 14 deletions
@@ -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; |