libsaria: Remove barely used size function from LibraryPath
It was used internally once and externally once (to print out the current size). It can easily be removed to clean things up.
This commit is contained in:
parent
995a372a6e
commit
d74efc6022
|
@ -28,16 +28,11 @@ list<libsaria::Track> *LibraryPath::get_list()
|
|||
return &file_list;
|
||||
}
|
||||
|
||||
unsigned int LibraryPath::size()
|
||||
{
|
||||
return file_list.size();
|
||||
}
|
||||
|
||||
void LibraryPath::get_info(void (*info_func)(struct libsaria::library::PathInfo &))
|
||||
{
|
||||
struct libsaria::library::PathInfo info;
|
||||
info.path = path;
|
||||
info.size = size();
|
||||
info.size = file_list.size();
|
||||
info_func(info);
|
||||
}
|
||||
|
||||
|
|
|
@ -28,7 +28,6 @@ class LibraryPath
|
|||
void insert_track(sid_t &inode, libsaria::Track &);
|
||||
void save(OutFile &);
|
||||
void update();
|
||||
unsigned int size();
|
||||
};
|
||||
|
||||
#endif /* LIBSARIA_LIBRARY_PATH_H */
|
||||
|
|
|
@ -68,7 +68,6 @@ void ScanTask::run_task()
|
|||
}
|
||||
|
||||
if (end_dir == true) {
|
||||
println("Library path size: %d", library->size());
|
||||
save = new SaveTask(libsaria::library::save);
|
||||
save->queue_front();
|
||||
libsaria::index::refresh();
|
||||
|
|
Loading…
Reference in New Issue