Skip to content

Commit c520e0f

Browse files
siparandom-zebra
authored andcommitted
Remove some unused functions and methods
1 parent 508f1a1 commit c520e0f

File tree

2 files changed

+0
-12
lines changed

2 files changed

+0
-12
lines changed

src/hash.h

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -188,16 +188,6 @@ inline uint256 Hash(const T1 p1begin, const T1 p1end, const T2 p2begin, const T2
188188
return result;
189189
}
190190

191-
/** Compute the 256-bit hash of the concatenation of three objects. */
192-
template <typename T1, typename T2, typename T3>
193-
inline uint256 Hash(const T1 p1begin, const T1 p1end, const T2 p2begin, const T2 p2end, const T3 p3begin, const T3 p3end)
194-
{
195-
static const unsigned char pblank[1] = {};
196-
uint256 result;
197-
CHash256().Write(p1begin == p1end ? pblank : (const unsigned char*)&p1begin[0], (p1end - p1begin) * sizeof(p1begin[0])).Write(p2begin == p2end ? pblank : (const unsigned char*)&p2begin[0], (p2end - p2begin) * sizeof(p2begin[0])).Write(p3begin == p3end ? pblank : (const unsigned char*)&p3begin[0], (p3end - p3begin) * sizeof(p3begin[0])).Finalize((unsigned char*)&result);
198-
return result;
199-
}
200-
201191
/** Compute the 256-bit hash of the concatenation of three objects. */
202192
template <typename T1, typename T2, typename T3, typename T4>
203193
inline uint256 Hash(const T1 p1begin, const T1 p1end, const T2 p2begin, const T2 p2end, const T3 p3begin, const T3 p3end, const T4 p4begin, const T4 p4end)

src/uint256.h

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -127,7 +127,6 @@ class blob88 : public base_blob<88> {
127127
class uint160 : public base_blob<160> {
128128
public:
129129
uint160() {}
130-
uint160(const base_blob<160>& b) : base_blob<160>(b) {}
131130
explicit uint160(const std::vector<unsigned char>& vch) : base_blob<160>(vch) {}
132131
};
133132

@@ -139,7 +138,6 @@ class uint160 : public base_blob<160> {
139138
class uint256 : public base_blob<256> {
140139
public:
141140
uint256() {}
142-
uint256(const base_blob<256>& b) : base_blob<256>(b) {}
143141
explicit uint256(const std::vector<unsigned char>& vch) : base_blob<256>(vch) {}
144142

145143
/** A cheap hash function that just returns 64 bits from the result, it can be

0 commit comments

Comments
 (0)