]> git.tdb.fi Git - builder.git/blobdiff - source/systemlibrary.cpp
Get rid of the Library and SystemLibrary classes as unnecessary abstractions
[builder.git] / source / systemlibrary.cpp
diff --git a/source/systemlibrary.cpp b/source/systemlibrary.cpp
deleted file mode 100644 (file)
index 61bd810..0000000
+++ /dev/null
@@ -1,19 +0,0 @@
-#include <msp/fs/path.h>
-#include <msp/fs/utils.h>
-#include "systemlibrary.h"
-
-using namespace std;
-using namespace Msp;
-
-SystemLibrary::SystemLibrary(Builder &b, const FS::Path &p):
-       FileTarget(b, 0, p),
-       Library(b, 0, p, extract_libname(p))
-{ }
-
-string SystemLibrary::extract_libname(const FS::Path &p)
-{
-       string result = FS::basepart(FS::basename(p));
-       if(!result.compare(0, 3, "lib"))
-               result.erase(0, 3);
-       return result;
-}