Skip to content

Commit 55e4c35

Browse files
committedNov 19, 2014
Remove unused rangelim function (the macro still exists)
1 parent da2ffeb commit 55e4c35

File tree

1 file changed

+0
-9
lines changed

1 file changed

+0
-9
lines changed
 

‎src/util/numeric.h

-9
Original file line numberDiff line numberDiff line change
@@ -111,15 +111,6 @@ inline bool isInArea(v3s16 p, v3s16 d)
111111
);
112112
}
113113

114-
inline s16 rangelim(s16 i, s16 max)
115-
{
116-
if(i < 0)
117-
return 0;
118-
if(i > max)
119-
return max;
120-
return i;
121-
}
122-
123114
#define rangelim(d, min, max) ((d) < (min) ? (min) : ((d)>(max)?(max):(d)))
124115
#define myfloor(x) ((x) > 0.0 ? (int)(x) : (int)(x) - 1)
125116

0 commit comments

Comments
 (0)
Please sign in to comment.