diff options
author | Wladimir J. van der Laan <laanwj@gmail.com> | 2014-08-20 16:32:14 +0200 |
---|---|---|
committer | Wladimir J. van der Laan <laanwj@gmail.com> | 2014-08-26 13:25:21 +0200 |
commit | 121d6ad9dbedd6a13b12d75a4c48505797d8de9d (patch) | |
tree | 00da4dcf8d9bb375e8075e2896fde701bc1cf7b5 /src/util.h | |
parent | d1e26d4e71460ffd50c3190385c759b48ab343e9 (diff) |
Remove unused `alignup` function from util.h
Diffstat (limited to 'src/util.h')
-rw-r--r-- | src/util.h | 14 |
1 files changed, 0 insertions, 14 deletions
diff --git a/src/util.h b/src/util.h index e813c86804..10fc5dd58e 100644 --- a/src/util.h +++ b/src/util.h @@ -46,20 +46,6 @@ static const int64_t CENT = 1000000; // This is needed because the foreach macro can't get over the comma in pair<t1, t2> #define PAIRTYPE(t1, t2) std::pair<t1, t2> -// Align by increasing pointer, must have extra space at end of buffer -template <size_t nBytes, typename T> -T* alignup(T* p) -{ - union - { - T* ptr; - size_t n; - } u; - u.ptr = p; - u.n = (u.n + (nBytes-1)) & ~(nBytes-1); - return u.ptr; -} - #ifdef WIN32 #define MSG_DONTWAIT 0 |