Skip to content

Commit

Permalink
Remove arith_uint160
Browse files Browse the repository at this point in the history
We never do 160-bit arithmetic.
  • Loading branch information
laanwj committed Jan 5, 2015
1 parent dba2e91 commit edc7204
Show file tree
Hide file tree
Showing 3 changed files with 23 additions and 294 deletions.
17 changes: 0 additions & 17 deletions src/arith_uint256.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -216,23 +216,6 @@ unsigned int base_uint<BITS>::bits() const
return 0;
}

// Explicit instantiations for base_uint<160>
template base_uint<160>::base_uint(const std::string&);
template base_uint<160>::base_uint(const std::vector<unsigned char>&);
template base_uint<160>& base_uint<160>::operator<<=(unsigned int);
template base_uint<160>& base_uint<160>::operator>>=(unsigned int);
template base_uint<160>& base_uint<160>::operator*=(uint32_t b32);
template base_uint<160>& base_uint<160>::operator*=(const base_uint<160>& b);
template base_uint<160>& base_uint<160>::operator/=(const base_uint<160>& b);
template int base_uint<160>::CompareTo(const base_uint<160>&) const;
template bool base_uint<160>::EqualTo(uint64_t) const;
template double base_uint<160>::getdouble() const;
template std::string base_uint<160>::GetHex() const;
template std::string base_uint<160>::ToString() const;
template void base_uint<160>::SetHex(const char*);
template void base_uint<160>::SetHex(const std::string&);
template unsigned int base_uint<160>::bits() const;

// Explicit instantiations for base_uint<256>
template base_uint<256>::base_uint(const std::string&);
template base_uint<256>::base_uint(const std::vector<unsigned char>&);
Expand Down
10 changes: 0 additions & 10 deletions src/arith_uint256.h
Original file line number Diff line number Diff line change
Expand Up @@ -304,16 +304,6 @@ class base_uint
}
};

/** 160-bit unsigned big integer. */
class arith_uint160 : public base_uint<160> {
public:
arith_uint160() {}
arith_uint160(const base_uint<160>& b) : base_uint<160>(b) {}
arith_uint160(uint64_t b) : base_uint<160>(b) {}
explicit arith_uint160(const std::string& str) : base_uint<160>(str) {}
explicit arith_uint160(const std::vector<unsigned char>& vch) : base_uint<160>(vch) {}
};

/** 256-bit unsigned big integer. */
class arith_uint256 : public base_uint<256> {
public:
Expand Down
Loading

0 comments on commit edc7204

Please sign in to comment.