]> git.tdb.fi Git - libs/core.git/blobdiff - source/io/seek.cpp
Add an intermediate Seekable interface class
[libs/core.git] / source / io / seek.cpp
diff --git a/source/io/seek.cpp b/source/io/seek.cpp
deleted file mode 100644 (file)
index c0b65ca..0000000
+++ /dev/null
@@ -1,34 +0,0 @@
-#ifdef WIN32
-#include <windows.h>
-#endif
-#include <stdexcept>
-#include "seek.h"
-
-using namespace std;
-
-namespace Msp {
-namespace IO {
-
-int sys_seek_type(SeekType st)
-{
-#ifdef WIN32
-       if(st==S_BEG)
-               return FILE_BEGIN;
-       else if(st==S_CUR)
-               return FILE_CURRENT;
-       else if(st==S_END)
-               return FILE_END;
-#else
-       if(st==S_BEG)
-               return SEEK_SET;
-       else if(st==S_CUR)
-               return SEEK_CUR;
-       else if(st==S_END)
-               return SEEK_END;
-#endif
-
-       throw invalid_argument("Invalid seek type");
-}
-
-} // namespace IO
-} // namespace Msp