libsaria: Remove obsolete renderer functions
Dynamic playlists are disabled right now, so I'm making use of this time to clear out old code. This patch removes library renderer functions that have already been reimplemented. Signed-off-by: Bryan Schumaker <bjschuma@gmail.com>
This commit is contained in:
parent
e6d9d2a906
commit
69687ac6c6
|
@ -18,7 +18,6 @@ namespace libsaria
|
|||
void set_playlist(Playlist *);
|
||||
Playlist *get_playlist();
|
||||
virtual void renumbered(int);
|
||||
virtual void refilter();
|
||||
virtual void track_updated(Track *);
|
||||
|
||||
bool is_static();
|
||||
|
@ -27,12 +26,6 @@ namespace libsaria
|
|||
virtual void on_disable(bool);
|
||||
|
||||
virtual void goto_index(unsigned int);
|
||||
|
||||
virtual void modify_prepare();
|
||||
virtual void modify_done();
|
||||
virtual void insert(Track *, unsigned int);
|
||||
|
||||
virtual void remove_index(unsigned int);
|
||||
};
|
||||
|
||||
}; /* Namespace: libsaria */
|
||||
|
|
|
@ -18,7 +18,6 @@ namespace libsaria
|
|||
length += track->get_length();
|
||||
index.add_track(track);
|
||||
track->add_playlist(this);
|
||||
RENDER( insert(track, ins_index) );
|
||||
notify_ui(PLAYLIST_ADD, track, ins_index);
|
||||
notify_ui(PLAYLIST_SIZE, NULL, 0);
|
||||
data_state = DIRTY;
|
||||
|
@ -32,7 +31,6 @@ namespace libsaria
|
|||
index.remove_track(*it);
|
||||
(*it)->rm_playlist(this);
|
||||
it = plist.erase(it);
|
||||
RENDER( remove_index(rm_index) );
|
||||
notify_ui(PLAYLIST_RM, (*it), rm_index);
|
||||
notify_ui(PLAYLIST_SIZE, NULL, 0);
|
||||
if (rm_index != 0) {
|
||||
|
@ -51,8 +49,6 @@ namespace libsaria
|
|||
list<Track *>::iterator it;
|
||||
unsigned int index = 0;
|
||||
|
||||
RENDER( modify_prepare() );
|
||||
|
||||
for (it = plist.begin(); it != plist.end(); it++) {
|
||||
if (*it == track) {
|
||||
remove_track_it(it, index);
|
||||
|
@ -62,7 +58,6 @@ namespace libsaria
|
|||
}
|
||||
|
||||
schedule_save();
|
||||
RENDER( modify_done() );
|
||||
}
|
||||
|
||||
void Playlist::remove_indices(list<unsigned int> &indices)
|
||||
|
@ -78,8 +73,6 @@ namespace libsaria
|
|||
if (indices.back() >= plist.size())
|
||||
return;
|
||||
|
||||
RENDER( modify_prepare() );
|
||||
|
||||
index = 0;
|
||||
removed = 0;
|
||||
to_rm = plist.begin();
|
||||
|
@ -92,7 +85,6 @@ namespace libsaria
|
|||
}
|
||||
|
||||
schedule_save();
|
||||
RENDER( modify_done() );
|
||||
}
|
||||
|
||||
void Playlist::add_sorted(list<Track *> &tracks)
|
||||
|
@ -140,12 +132,10 @@ namespace libsaria
|
|||
|
||||
void Playlist::add_tracks(list<Track *> &tracks)
|
||||
{
|
||||
RENDER(modify_prepare());
|
||||
do_add_tracks(tracks);
|
||||
schedule_save();
|
||||
if (plist.size() == tracks.size())
|
||||
cur = plist.begin();
|
||||
RENDER(modify_done());
|
||||
}
|
||||
|
||||
}; /* namespace: libsaria */
|
||||
|
|
|
@ -74,7 +74,6 @@ namespace libsaria
|
|||
void Playlist::set_filter_text(string &text)
|
||||
{
|
||||
index.do_filter(text);
|
||||
RENDER( refilter() );
|
||||
notify_ui(PLAYLIST_FILTER, NULL, 0);
|
||||
}
|
||||
|
||||
|
|
|
@ -29,10 +29,6 @@ namespace libsaria
|
|||
{
|
||||
}
|
||||
|
||||
void PlaylistRenderer::refilter()
|
||||
{
|
||||
}
|
||||
|
||||
void PlaylistRenderer::track_updated(Track *track)
|
||||
{
|
||||
}
|
||||
|
@ -50,22 +46,6 @@ namespace libsaria
|
|||
{
|
||||
}
|
||||
|
||||
void PlaylistRenderer::modify_prepare()
|
||||
{
|
||||
}
|
||||
|
||||
void PlaylistRenderer::insert(Track *t, unsigned int index)
|
||||
{
|
||||
}
|
||||
|
||||
void PlaylistRenderer::modify_done()
|
||||
{
|
||||
}
|
||||
|
||||
void PlaylistRenderer::remove_index(unsigned int index)
|
||||
{
|
||||
}
|
||||
|
||||
void PlaylistRenderer::goto_index(unsigned int index)
|
||||
{
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue