Skip to content

Commit

Permalink
Remove unused rangelim function (the macro still exists)
Browse files Browse the repository at this point in the history
  • Loading branch information
kahrl committed Nov 19, 2014
1 parent da2ffeb commit 55e4c35
Showing 1 changed file with 0 additions and 9 deletions.
9 changes: 0 additions & 9 deletions src/util/numeric.h
Expand Up @@ -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)

Expand Down

0 comments on commit 55e4c35

Please sign in to comment.