diff --git a/src/include/miopen/sqlite_db.hpp b/src/include/miopen/sqlite_db.hpp index 5b4f23179a..e1ee92e1c5 100644 --- a/src/include/miopen/sqlite_db.hpp +++ b/src/include/miopen/sqlite_db.hpp @@ -290,9 +290,6 @@ class SQLiteBase } } - static Derived& GetCached(const fs::path& path, bool is_system); - // TODO: Fix this for the overhead of having fields per record - inline auto CheckTableColumns(const std::string& tableName, const std::vector& goldenList) const { @@ -370,25 +367,6 @@ class SQLiteBase SQLite sql; bool is_system; }; - -template -Derived& SQLiteBase::GetCached(const fs::path& path, bool is_system) -{ - // NOLINTNEXTLINE (cppcoreguidelines-avoid-non-const-global-variables) - static std::mutex mutex; - const std::lock_guard lock{mutex}; - - // NOLINTNEXTLINE (cppcoreguidelines-avoid-non-const-global-variables) - static auto instances = std::map{}; - const auto it = instances.find(path); - - if(it != instances.end()) - return it->second; - - instances.emplace(path, Derived{path, is_system}); - return instances.at(path); -} - class SQLitePerfDb : public SQLiteBase { public: