diff --git a/CMakeLists.txt b/CMakeLists.txt index 9d2a6bedf..ea4ba09f7 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -553,7 +553,6 @@ set_glob(ENGINE_SHARED GLOB src/engine/shared snapshot.cpp snapshot.h storage.cpp - storage.h uuid_manager.cpp uuid_manager.h websockets.cpp diff --git a/src/engine/shared/storage.h b/src/engine/shared/storage.h deleted file mode 100644 index 0781a067f..000000000 --- a/src/engine/shared/storage.h +++ /dev/null @@ -1,48 +0,0 @@ -#ifndef STORAGE_H -#define STORAGE_H - -#include -#include -#include "engine.h" - -// compiled-in data-dir path -#define DATA_DIR "data" - - - -class CStorage : public IStorage -{ -public: - char m_aApplicationSavePath[512]; - char m_aDatadir[512]; - - CStorage() - { - m_aApplicationSavePath[0] = 0; - m_aDatadir[0] = 0; - } - - int Init(const char *pApplicationName, const char *pArgv0); - - int FindDatadir(const char *pArgv0); - - virtual void ListDirectory(int Types, const char *pPath, FS_LISTDIR_CALLBACK pfnCallback, void *pUser); - virtual void ListDirectoryInfo(int Type, const char *pPath, FS_LISTDIR_INFO_CALLBACK pfnCallback, void *pUser) = 0; - - virtual IOHANDLE OpenFile(const char *pFilename, int Flags, char *pBuffer = 0, int BufferSize = 0); - - static IStorage *Create(const char *pApplicationName, const char *pArgv0) - { - CStorage *p = new CStorage(); - if(p->Init(pApplicationName, pArgv0)) - { - delete p; - p = 0; - } - return p; - } -}; - -IStorage *CreateStorage(const char *pApplicationName, const char *pArgv0); - -#endif