aboutsummaryrefslogtreecommitdiff
path: root/src/util.h
diff options
context:
space:
mode:
authorWladimir J. van der Laan <laanwj@gmail.com>2011-09-02 17:35:30 +0200
committerWladimir J. van der Laan <laanwj@gmail.com>2011-09-02 17:35:30 +0200
commit7a15d4ff67c9a6e3b6b5a63f82f76ffe1937c3b8 (patch)
tree8ac8a0e7b9994ade96f635dd261c5ae46703f7df /src/util.h
parentf43f46c175d7e6d7426536f8efcad05d2eafba80 (diff)
parent86fd7c5af6cf3f907c50cf25ff844cd23e271c70 (diff)
downloadbitcoin-7a15d4ff67c9a6e3b6b5a63f82f76ffe1937c3b8.tar.xz
Merge branch 'master' of https://github.com/bitcoin/bitcoin
Conflicts: src/main.cpp
Diffstat (limited to 'src/util.h')
-rw-r--r--src/util.h8
1 files changed, 0 insertions, 8 deletions
diff --git a/src/util.h b/src/util.h
index 7fd224cbe7..fabcaf9303 100644
--- a/src/util.h
+++ b/src/util.h
@@ -67,14 +67,6 @@ typedef unsigned long long uint64;
// 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>
-// Used to bypass the rule against non-const reference to temporary
-// where it makes sense with wrappers such as CFlatData or CTxDB
-template<typename T>
-inline T& REF(const T& val)
-{
- return (T&)val;
-}
-
// Align by increasing pointer, must have extra space at end of buffer
template <size_t nBytes, typename T>
T* alignup(T* p)