menu: remove Menu::Swap

This commit is contained in:
Andrzej Rybczak
2012-09-18 20:53:34 +02:00
parent 419965924f
commit 3aa21f8ef7
3 changed files with 9 additions and 21 deletions

View File

@@ -229,11 +229,6 @@ public:
/// @param pos given position of item to be deleted
void deleteItem(size_t pos);
/// Swaps the content of two items
/// @param one position of first item
/// @param two position of second item
void Swap(size_t one, size_t two);
/// Moves the highlighted position to the given line of window
/// @param y Y position of menu window to be highlighted
/// @return true if the position is reachable, false otherwise
@@ -588,11 +583,6 @@ template <typename T> void Menu<T>::deleteItem(size_t pos)
m_options.erase(m_options.begin()+pos);
}
template <typename T> void Menu<T>::Swap(size_t one, size_t two)
{
std::swap(m_options.at(one), m_options.at(two));
}
template <typename T> bool Menu<T>::Goto(size_t y)
{
if (!isHighlightable(m_beginning+y))