summaryrefslogtreecommitdiff
path: root/src/mapgen
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/mapgen
parent6de8d77e17017cd5cc7b065d42566b6b1cd076cc (diff)
downloadminetest-ecc6f4ba25cd49599922333a5f8d4b4ce368992d.tar.gz
minetest-ecc6f4ba25cd49599922333a5f8d4b4ce368992d.tar.bz2
minetest-ecc6f4ba25cd49599922333a5f8d4b4ce368992d.zip
Remove a few unused functions reported by callcatcher (#11658)
Diffstat (limited to 'src/mapgen')
-rw-r--r--src/mapgen/mapgen_v6.cpp13
-rw-r--r--src/mapgen/mapgen_v6.h4
2 files changed, 1 insertions, 16 deletions
diff --git a/src/mapgen/mapgen_v6.cpp b/src/mapgen/mapgen_v6.cpp
index bce9cee81..a418acace 100644
--- a/src/mapgen/mapgen_v6.cpp
+++ b/src/mapgen/mapgen_v6.cpp
@@ -360,19 +360,6 @@ int MapgenV6::getSpawnLevelAtPoint(v2s16 p)
//////////////////////// Noise functions
-float MapgenV6::getMudAmount(v2s16 p)
-{
- int index = (p.Y - node_min.Z) * ystride + (p.X - node_min.X);
- return getMudAmount(index);
-}
-
-
-bool MapgenV6::getHaveBeach(v2s16 p)
-{
- int index = (p.Y - node_min.Z) * ystride + (p.X - node_min.X);
- return getHaveBeach(index);
-}
-
BiomeV6Type MapgenV6::getBiome(v2s16 p)
{
diff --git a/src/mapgen/mapgen_v6.h b/src/mapgen/mapgen_v6.h
index a6e6da8c6..b0eb67893 100644
--- a/src/mapgen/mapgen_v6.h
+++ b/src/mapgen/mapgen_v6.h
@@ -154,9 +154,7 @@ public:
float getHumidity(v2s16 p);
float getTreeAmount(v2s16 p);
bool getHaveAppleTree(v2s16 p);
- float getMudAmount(v2s16 p);
- virtual float getMudAmount(int index);
- bool getHaveBeach(v2s16 p);
+ float getMudAmount(int index);
bool getHaveBeach(int index);
BiomeV6Type getBiome(v2s16 p);
BiomeV6Type getBiome(int index, v2s16 p);