]> git.tdb.fi Git - libs/core.git/blobdiff - source/seek.cpp
Move files to prepare for assimilation into core
[libs/core.git] / source / seek.cpp
diff --git a/source/seek.cpp b/source/seek.cpp
deleted file mode 100644 (file)
index b10c5a0..0000000
+++ /dev/null
@@ -1,32 +0,0 @@
-#ifdef WIN32
-#include <windows.h>
-#endif
-#include "except.h"
-#include "seek.h"
-
-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 InvalidParameterValue("Invalid seek type");
-}
-
-} // namespace IO
-} // namespace Msp