libsaria: Remove path.cpp file

I moved these functions into the main library.cpp file
This commit is contained in:
Bryan Schumaker 2011-12-29 21:54:51 -05:00
parent 8e8eec3556
commit bdf359e008
2 changed files with 21 additions and 31 deletions

View File

@ -47,4 +47,25 @@ namespace libsaria
trigger_callback(LIBRARY_REFRESH);
}
void library::add_path(string dir)
{
path_list.push_back(LibraryPath(dir));
update_path(dir);
}
void library::remove_path(string dir)
{
list<LibraryPath>::iterator it;
for (it = path_list.begin(); it != path_list.end(); it++) {
if (it->get_path() == dir) {
path_list.erase(it);
save();
refresh();
return;
}
}
}
}; /* namespace: libsaria */

View File

@ -1,31 +0,0 @@
#include <string>
using namespace std;
#include <libsaria/library.h>
#include "library.h"
namespace libsaria
{
void library::add_path(string dir)
{
path_list.push_back(LibraryPath(dir));
update_path(dir);
}
void library::remove_path(string dir)
{
list<LibraryPath>::iterator it;
for (it = path_list.begin(); it != path_list.end(); it++) {
if (it->get_path() == dir) {
path_list.erase(it);
save();
refresh();
return;
}
}
}
}; /* Namespace: libsaria */