aboutsummaryrefslogtreecommitdiff
path: root/src/mapblock.cpp
diff options
context:
space:
mode:
authorSmallJoker <SmallJoker@users.noreply.github.com>2021-10-12 20:12:20 +0200
committerGitHub <noreply@github.com>2021-10-12 20:12:20 +0200
commitecc6f4ba25cd49599922333a5f8d4b4ce368992d (patch)
tree9e54d0968bde5faf2f1870c5c806fa30521a695d /src/mapblock.cpp
parent6de8d77e17017cd5cc7b065d42566b6b1cd076cc (diff)
downloadminetest-ecc6f4ba25cd49599922333a5f8d4b4ce368992d.tar.xz
Remove a few unused functions reported by callcatcher (#11658)
Diffstat (limited to 'src/mapblock.cpp')
-rw-r--r--src/mapblock.cpp25
1 files changed, 0 insertions, 25 deletions
diff --git a/src/mapblock.cpp b/src/mapblock.cpp
index 4958d3a65..e3a6caa19 100644
--- a/src/mapblock.cpp
+++ b/src/mapblock.cpp
@@ -218,31 +218,6 @@ void MapBlock::expireDayNightDiff()
m_day_night_differs_expired = true;
}
-s16 MapBlock::getGroundLevel(v2s16 p2d)
-{
- if(isDummy())
- return -3;
- try
- {
- s16 y = MAP_BLOCKSIZE-1;
- for(; y>=0; y--)
- {
- MapNode n = getNodeRef(p2d.X, y, p2d.Y);
- if (m_gamedef->ndef()->get(n).walkable) {
- if(y == MAP_BLOCKSIZE-1)
- return -2;
-
- return y;
- }
- }
- return -1;
- }
- catch(InvalidPositionException &e)
- {
- return -3;
- }
-}
-
/*
Serialization
*/