From 57aceed1722b0bf3511d3ce3902b4fe687d21ee5 Mon Sep 17 00:00:00 2001 From: lisyarus Date: Sun, 3 Mar 2024 02:14:41 +0300 Subject: [PATCH] Remove duplicate hash_table::operator[] (how did this even happen?) --- libs/util/include/psemek/util/hash_table.hpp | 8 -------- 1 file changed, 8 deletions(-) diff --git a/libs/util/include/psemek/util/hash_table.hpp b/libs/util/include/psemek/util/hash_table.hpp index 83fac31c..5fef85b0 100644 --- a/libs/util/include/psemek/util/hash_table.hpp +++ b/libs/util/include/psemek/util/hash_table.hpp @@ -475,14 +475,6 @@ namespace psemek::util return impl_.insert(std::move(value)); } - template - Value & operator[] (Key1 const & key) - { - if (auto it = find(key); it != end()) - return it->second; - return insert({Key(key), Value{}}).first->second; - } - template iterator find(Key1 const & key) const {