Commit 23463e8b by Antonio Maiorano

Remove unused SamplingRoutineCache::Key::operator<

Bug: b/141863676 Change-Id: Ie6ea68edcc0505bf2931c0fe91e4be418c4a21e0 Reviewed-on: https://swiftshader-review.googlesource.com/c/SwiftShader/+/37108Reviewed-by: 's avatarNicolas Capens <nicolascapens@google.com> Tested-by: 's avatarAntonio Maiorano <amaiorano@google.com> Kokoro-Presubmit: kokoro <noreply+kokoro@google.com>
parent 6474a450
...@@ -72,7 +72,6 @@ public: ...@@ -72,7 +72,6 @@ public:
uint32_t imageView; uint32_t imageView;
inline bool operator == (const Key& rhs) const; inline bool operator == (const Key& rhs) const;
inline bool operator < (const Key& rhs) const;
struct Hash struct Hash
{ {
...@@ -121,11 +120,6 @@ inline bool vk::Device::SamplingRoutineCache::Key::operator == (const Key& rhs) ...@@ -121,11 +120,6 @@ inline bool vk::Device::SamplingRoutineCache::Key::operator == (const Key& rhs)
return instruction == rhs.instruction && sampler == rhs.sampler && imageView == rhs.imageView; return instruction == rhs.instruction && sampler == rhs.sampler && imageView == rhs.imageView;
} }
inline bool vk::Device::SamplingRoutineCache::Key::operator < (const Key& rhs) const
{
return std::tie(instruction, sampler, imageView) < std::tie(rhs.instruction, rhs.sampler, rhs.imageView);
}
inline std::size_t vk::Device::SamplingRoutineCache::Key::Hash::operator() (const Key& key) const noexcept inline std::size_t vk::Device::SamplingRoutineCache::Key::Hash::operator() (const Key& key) const noexcept
{ {
// Combine three 32-bit integers into a 64-bit hash. // Combine three 32-bit integers into a 64-bit hash.
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment