diff options
author | SmallJoker <SmallJoker@users.noreply.github.com> | 2021-10-12 20:12:20 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-10-12 20:12:20 +0200 |
commit | ecc6f4ba25cd49599922333a5f8d4b4ce368992d (patch) | |
tree | 9e54d0968bde5faf2f1870c5c806fa30521a695d /src/emerge.cpp | |
parent | 6de8d77e17017cd5cc7b065d42566b6b1cd076cc (diff) | |
download | minetest-ecc6f4ba25cd49599922333a5f8d4b4ce368992d.tar.gz minetest-ecc6f4ba25cd49599922333a5f8d4b4ce368992d.tar.bz2 minetest-ecc6f4ba25cd49599922333a5f8d4b4ce368992d.zip |
Remove a few unused functions reported by callcatcher (#11658)
Diffstat (limited to 'src/emerge.cpp')
-rw-r--r-- | src/emerge.cpp | 17 |
1 files changed, 0 insertions, 17 deletions
diff --git a/src/emerge.cpp b/src/emerge.cpp index 9234fe6d3..be64d744a 100644 --- a/src/emerge.cpp +++ b/src/emerge.cpp @@ -368,12 +368,6 @@ bool EmergeManager::isBlockInQueue(v3s16 pos) // TODO(hmmmm): Move this to ServerMap -v3s16 EmergeManager::getContainingChunk(v3s16 blockpos) -{ - return getContainingChunk(blockpos, mgparams->chunksize); -} - -// TODO(hmmmm): Move this to ServerMap v3s16 EmergeManager::getContainingChunk(v3s16 blockpos, s16 chunksize) { s16 coff = -chunksize / 2; @@ -396,17 +390,6 @@ int EmergeManager::getSpawnLevelAtPoint(v2s16 p) } -int EmergeManager::getGroundLevelAtPoint(v2s16 p) -{ - if (m_mapgens.empty() || !m_mapgens[0]) { - errorstream << "EmergeManager: getGroundLevelAtPoint() called" - " before mapgen init" << std::endl; - return 0; - } - - return m_mapgens[0]->getGroundLevelAtPoint(p); -} - // TODO(hmmmm): Move this to ServerMap bool EmergeManager::isBlockUnderground(v3s16 blockpos) { |