aboutsummaryrefslogtreecommitdiffstats
path: root/libdevcore
diff options
context:
space:
mode:
authorAlex Beregszaszi <alex@rtfs.hu>2016-10-06 21:01:23 +0800
committerAlex Beregszaszi <alex@rtfs.hu>2016-10-06 21:53:40 +0800
commit53cbece3a608e62f61050362efa5a65486e4de7b (patch)
tree955222db1af902673066defb33908b5310422536 /libdevcore
parentaefb6e5fcf9adc7c58da9ec0454707305f7e9ac9 (diff)
downloaddexon-solidity-53cbece3a608e62f61050362efa5a65486e4de7b.tar
dexon-solidity-53cbece3a608e62f61050362efa5a65486e4de7b.tar.gz
dexon-solidity-53cbece3a608e62f61050362efa5a65486e4de7b.tar.bz2
dexon-solidity-53cbece3a608e62f61050362efa5a65486e4de7b.tar.lz
dexon-solidity-53cbece3a608e62f61050362efa5a65486e4de7b.tar.xz
dexon-solidity-53cbece3a608e62f61050362efa5a65486e4de7b.tar.zst
dexon-solidity-53cbece3a608e62f61050362efa5a65486e4de7b.zip
sha3: remove unused counter
Diffstat (limited to 'libdevcore')
-rw-r--r--libdevcore/SHA3.cpp3
-rw-r--r--libdevcore/SHA3.h2
2 files changed, 0 insertions, 5 deletions
diff --git a/libdevcore/SHA3.cpp b/libdevcore/SHA3.cpp
index 774a11b0..64a66788 100644
--- a/libdevcore/SHA3.cpp
+++ b/libdevcore/SHA3.cpp
@@ -207,14 +207,11 @@ defsha3(512)
}
-unsigned g_keccak256Counter = 0;
-
bool keccak256(bytesConstRef _input, bytesRef o_output)
{
// FIXME: What with unaligned memory?
if (o_output.size() != 32)
return false;
- ++g_keccak256Counter;
keccak::sha3_256(o_output.data(), 32, _input.data(), _input.size());
// keccak::keccak(ret.data(), 32, (uint64_t const*)_input.data(), _input.size());
return true;
diff --git a/libdevcore/SHA3.h b/libdevcore/SHA3.h
index b2a84c74..eedcc420 100644
--- a/libdevcore/SHA3.h
+++ b/libdevcore/SHA3.h
@@ -54,6 +54,4 @@ inline std::string keccak256(std::string const& _input, bool _isNibbles) { retur
/// Calculate SHA3-256 MAC
inline void keccak256mac(bytesConstRef _secret, bytesConstRef _plain, bytesRef _output) { keccak256(_secret.toBytes() + _plain.toBytes()).ref().populate(_output); }
-extern unsigned g_keccak256Counter;
-
}