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:
Bryan Schumaker 2011-12-29 20:43:46 -05:00
parent 995a372a6e
commit d74efc6022
3 changed files with 1 additions and 8 deletions

View File

@ -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);
}

View File

@ -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 */

View File

@ -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();