From 6a17e33f3dafa0e9d6c9109c53223fc7b89c83af Mon Sep 17 00:00:00 2001 From: Ben Clayton Date: Wed, 31 Aug 2022 23:51:18 +0000 Subject: [PATCH] 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 Commit-Queue: Ben Clayton Kokoro: Kokoro --- src/tint/writer/spirv/operand.h | 14 -------------- 1 file changed, 14 deletions(-) diff --git a/src/tint/writer/spirv/operand.h b/src/tint/writer/spirv/operand.h index dab10e9141..0601ca0684 100644 --- a/src/tint/writer/spirv/operand.h +++ b/src/tint/writer/spirv/operand.h @@ -43,18 +43,4 @@ using OperandListKey = utils::UnorderedKeyWrapper; } // namespace tint::writer::spirv -namespace std { - -/// Custom std::hash specialization for tint::writer::spirv::Operand -template <> -class hash { - 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_