libsaria: Remove path.cpp file
I moved these functions into the main library.cpp file
This commit is contained in:
parent
8e8eec3556
commit
bdf359e008
|
@ -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 */
|
||||
|
|
|
@ -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 */
|
Loading…
Reference in New Issue