Skip to content
Snippets Groups Projects
Commit 69a6085f authored by Wuttke, Joachim's avatar Wuttke, Joachim
Browse files

rm unused fcts, also in VectorWC

parent 02ab87de
No related branches found
No related tags found
1 merge request!2397InstrumentsSet and SamplesSet based on SetWithModel, which owns a QListModel
...@@ -58,21 +58,6 @@ public: ...@@ -58,21 +58,6 @@ public:
super::delete_at(m_current_index); super::delete_at(m_current_index);
update_current(); update_current();
} }
T* release_at(size_t i)
{
super::release_at(i);
update_current();
}
T* release_back()
{
super::release_back();
update_current();
}
T* release_front()
{
super::release_front();
update_current();
}
void swap(size_t from, size_t to) void swap(size_t from, size_t to)
{ {
super::swap(from, to); super::swap(from, to);
......
...@@ -32,6 +32,12 @@ public: ...@@ -32,6 +32,12 @@ public:
super::push_back(e); super::push_back(e);
m_current_index = super::size() - 1; m_current_index = super::size() - 1;
} }
void delete_current()
{
ASSERT(m_current_index != size_t(-1));
super::delete_at(m_current_index);
update_current();
}
void insert_at(size_t i, T* e) void insert_at(size_t i, T* e)
{ {
super::insert_at(i, e); super::insert_at(i, e);
...@@ -52,27 +58,6 @@ public: ...@@ -52,27 +58,6 @@ public:
super::delete_at(i); super::delete_at(i);
update_current(); update_current();
} }
void delete_current()
{
ASSERT(m_current_index != size_t(-1));
super::delete_at(m_current_index);
update_current();
}
T* release_at(size_t i)
{
super::release_at(i);
update_current();
}
T* release_back()
{
super::release_back();
update_current();
}
T* release_front()
{
super::release_front();
update_current();
}
void swap(size_t from, size_t to) void swap(size_t from, size_t to)
{ {
super::swap(from, to); super::swap(from, to);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment