diff options
author | Kahrl <kahrl@gmx.net> | 2014-11-19 10:19:52 +0100 |
---|---|---|
committer | Kahrl <kahrl@gmx.net> | 2014-11-19 10:19:52 +0100 |
commit | 55e4c35eaf25a2b11192a2f7f011f7dc6d8c32d4 (patch) | |
tree | 4f8431ea01afd2fc6a8d5303a22ef570dc04d6b5 /src/util | |
parent | da2ffebc41ebdd4ce78031d4c730cc221dccc87f (diff) | |
download | minetest-55e4c35eaf25a2b11192a2f7f011f7dc6d8c32d4.tar.gz minetest-55e4c35eaf25a2b11192a2f7f011f7dc6d8c32d4.tar.bz2 minetest-55e4c35eaf25a2b11192a2f7f011f7dc6d8c32d4.zip |
Remove unused rangelim function (the macro still exists)
Diffstat (limited to 'src/util')
-rw-r--r-- | src/util/numeric.h | 9 |
1 files changed, 0 insertions, 9 deletions
diff --git a/src/util/numeric.h b/src/util/numeric.h index e7fdc2599..098a5631c 100644 --- a/src/util/numeric.h +++ b/src/util/numeric.h @@ -111,15 +111,6 @@ inline bool isInArea(v3s16 p, v3s16 d) ); } -inline s16 rangelim(s16 i, s16 max) -{ - if(i < 0) - return 0; - if(i > max) - return max; - return i; -} - #define rangelim(d, min, max) ((d) < (min) ? (min) : ((d)>(max)?(max):(d))) #define myfloor(x) ((x) > 0.0 ? (int)(x) : (int)(x) - 1) |