diff options
author | random-geek <35757396+random-geek@users.noreply.github.com> | 2019-10-21 14:59:58 -0700 |
---|---|---|
committer | sfan5 <sfan5@live.de> | 2019-10-23 20:53:24 +0200 |
commit | 2f3c96b38d99db1d8ad6f4e07537220a9b31adc5 (patch) | |
tree | cd0e4481be52929736c74e088264c3411c576a12 /src/map.h | |
parent | 2ecf57c640ed7646be91ebc30e6f8fb32dac77df (diff) | |
download | minetest-2f3c96b38d99db1d8ad6f4e07537220a9b31adc5.tar.gz minetest-2f3c96b38d99db1d8ad6f4e07537220a9b31adc5.tar.bz2 minetest-2f3c96b38d99db1d8ad6f4e07537220a9b31adc5.zip |
Remove legacy flat-file map code
Diffstat (limited to 'src/map.h')
-rw-r--r-- | src/map.h | 12 |
1 files changed, 0 insertions, 12 deletions
@@ -380,21 +380,12 @@ public: names when saving */ void createDirs(const std::string &path); - // returns something like "map/sectors/xxxxxxxx" - std::string getSectorDir(v2s16 pos, int layout = 2); - // dirname: final directory name - v2s16 getSectorPos(const std::string &dirname); - v3s16 getBlockPos(const std::string §ordir, const std::string &blockfile); - static std::string getBlockFilename(v3s16 p); /* Database functions */ static MapDatabase *createDatabase(const std::string &name, const std::string &savedir, Settings &conf); - // Returns true if the database file does not exist - bool loadFromFolders(); - // Call these before and after saving of blocks void beginSave(); void endSave(); @@ -407,9 +398,6 @@ public: bool saveBlock(MapBlock *block); static bool saveBlock(MapBlock *block, MapDatabase *db); - // This will generate a sector with getSector if not found. - void loadBlock(const std::string §ordir, const std::string &blockfile, - MapSector *sector, bool save_after_load=false); MapBlock* loadBlock(v3s16 p); // Database version void loadBlock(std::string *blob, v3s16 p3d, MapSector *sector, bool save_after_load=false); |