prevent compiler warnings about unused ihasher and phasher

This commit is contained in:
David Rose 2005-03-05 00:00:14 +00:00
parent 73a247c3ee
commit b90d220d87

View File

@ -183,14 +183,12 @@ operator < (const TransformState &other) const {
size_t TransformState:: size_t TransformState::
get_hash() const { get_hash() const {
size_t hash = 0; size_t hash = 0;
int_hash ihasher;
pointer_hash phasher;
static const int significant_flags = static const int significant_flags =
(F_is_invalid | F_is_identity | F_components_given | F_hpr_given); (F_is_invalid | F_is_identity | F_components_given | F_hpr_given);
int flags = (_flags & significant_flags); int flags = (_flags & significant_flags);
hash = ihasher.add_hash(hash, flags); hash = int_hash::add_hash(hash, flags);
if ((_flags & (F_is_invalid | F_is_identity)) == 0) { if ((_flags & (F_is_invalid | F_is_identity)) == 0) {
// Only bother to put the rest of the stuff in the hash if the // Only bother to put the rest of the stuff in the hash if the
@ -216,7 +214,7 @@ get_hash() const {
// matrix-based TransformStates are considered to be different, // matrix-based TransformStates are considered to be different,
// even if their matrices have the same values. // even if their matrices have the same values.
hash = phasher.add_hash(hash, this); hash = pointer_hash::add_hash(hash, this);
} }
} }