tint/writer: Remove spirv::Operand hasher
It's not used any more. utils::Hasher is specialized for vectors. Change-Id: Ic7c6978ae1f54b608b4dba98abeac077c1be9567 Reviewed-on: https://dawn-review.googlesource.com/c/dawn/+/100904 Reviewed-by: Dan Sinclair <dsinclair@chromium.org> Commit-Queue: Ben Clayton <bclayton@google.com> Kokoro: Kokoro <noreply+kokoro@google.com>
This commit is contained in:
parent
b04d992f83
commit
6a17e33f3d
|
@ -43,18 +43,4 @@ using OperandListKey = utils::UnorderedKeyWrapper<OperandList>;
|
|||
|
||||
} // namespace tint::writer::spirv
|
||||
|
||||
namespace std {
|
||||
|
||||
/// Custom std::hash specialization for tint::writer::spirv::Operand
|
||||
template <>
|
||||
class hash<tint::writer::spirv::Operand> {
|
||||
public:
|
||||
/// @param o the Operand
|
||||
/// @return the hash value
|
||||
inline std::size_t operator()(const tint::writer::spirv::Operand& o) const {
|
||||
return std::visit([](auto v) { return tint::utils::Hash(v); }, o);
|
||||
}
|
||||
};
|
||||
|
||||
} // namespace std
|
||||
#endif // SRC_TINT_WRITER_SPIRV_OPERAND_H_
|
||||
|
|
Loading…
Reference in New Issue