aboutsummaryrefslogtreecommitdiff
path: root/src/libutil
diff options
context:
space:
mode:
authorCarlo Nucera <carlo.nucera@protonmail.com>2020-08-05 15:30:38 -0400
committerCarlo Nucera <carlo.nucera@protonmail.com>2020-08-05 15:30:38 -0400
commit8241e660bac5583d2924a490e5b32027e9e8e2fc (patch)
tree839240a56ac0f5f8ac916e5df322df583b0e340e /src/libutil
parentbe6e1c645707cd91d160bcfbedb9cd23cf24780d (diff)
Remove Hash::operator bool ()
Since the hash is not optional anymore
Diffstat (limited to 'src/libutil')
-rw-r--r--src/libutil/hash.hh3
1 files changed, 0 insertions, 3 deletions
diff --git a/src/libutil/hash.hh b/src/libutil/hash.hh
index 0520c6022..6d6eb70ca 100644
--- a/src/libutil/hash.hh
+++ b/src/libutil/hash.hh
@@ -59,9 +59,6 @@ private:
Hash(std::string_view s, HashType type, bool isSRI);
public:
- /* Check whether a hash is set. */
- operator bool () const { return (bool) type; }
-
/* Check whether two hash are equal. */
bool operator == (const Hash & h2) const;