aboutsummaryrefslogtreecommitdiff
path: root/src/uint256.h
diff options
context:
space:
mode:
authorAnthony Towns <[email protected]>2020-09-26 16:01:56 +1000
committerAnthony Towns <[email protected]>2020-09-28 12:14:19 +1000
commit82cf4641f4a161834d07ce83c18982d9b143c040 (patch)
tree8fea48359235ca8a911346f1551e1b08e06daa8e /src/uint256.h
parentuint256: Update constructors to c++11, make ONE static (diff)
downloaddiscoin-82cf4641f4a161834d07ce83c18982d9b143c040.tar.xz
discoin-82cf4641f4a161834d07ce83c18982d9b143c040.zip
scripted-diff: Replace UINT256_ONE() with uint256::ONE
-BEGIN VERIFY SCRIPT- sed -i '/inline.* UINT256_ONE() {/,+1d' src/uint256.h sed -i 's/UINT256_ONE()/uint256::ONE/' $(git grep -l UINT256_ONE) -END VERIFY SCRIPT-
Diffstat (limited to 'src/uint256.h')
-rw-r--r--src/uint256.h2
1 files changed, 0 insertions, 2 deletions
diff --git a/src/uint256.h b/src/uint256.h
index 3e245763b..c55cb3145 100644
--- a/src/uint256.h
+++ b/src/uint256.h
@@ -150,6 +150,4 @@ inline uint256 uint256S(const std::string& str)
return rv;
}
-inline const uint256& UINT256_ONE() { return uint256::ONE; }
-
#endif // BITCOIN_UINT256_H