diff options
author | David Beck <david.beck@arm.com> | 2018-11-05 13:40:33 +0000 |
---|---|---|
committer | Matthew Bentham <matthew.bentham@arm.com> | 2018-11-05 17:26:57 +0000 |
commit | 9efb57d62197aeb7d868c289bb34166c132f0287 (patch) | |
tree | 047fe9ac08ad90145d4e2d5bf1c6acc24eaad16c /src/backends/backendsCommon/RegistryCommon.hpp | |
parent | 9c6f3afdf7686d9804fd5bc04ea68fca4c49a0a8 (diff) | |
download | armnn-9efb57d62197aeb7d868c289bb34166c132f0287.tar.gz |
Revert "IVGCVSW-2056 + IVGCVSW-2064 : move ClContextControl to the ClBackend"
This reverts commit d4dfa684941a21314b70593d01b0fc2167eebad4.
Change-Id: Id61ce69215505c3cf5d30ec2a7ec9127fb2554fc
Diffstat (limited to 'src/backends/backendsCommon/RegistryCommon.hpp')
-rw-r--r-- | src/backends/backendsCommon/RegistryCommon.hpp | 20 |
1 files changed, 3 insertions, 17 deletions
diff --git a/src/backends/backendsCommon/RegistryCommon.hpp b/src/backends/backendsCommon/RegistryCommon.hpp index 3dbfad2a66..03bd338090 100644 --- a/src/backends/backendsCommon/RegistryCommon.hpp +++ b/src/backends/backendsCommon/RegistryCommon.hpp @@ -22,11 +22,11 @@ struct RegisteredTypeName static const char * Name() { return "UNKNOWN"; } }; -template <typename RegisteredType, typename PointerType, typename ParamType> +template <typename RegisteredType, typename PointerType> class RegistryCommon { public: - using FactoryFunction = std::function<PointerType(const ParamType&)>; + using FactoryFunction = std::function<PointerType()>; void Register(const BackendId& id, FactoryFunction factory) { @@ -53,20 +53,6 @@ public: return it->second; } - FactoryFunction GetFactory(const BackendId& id, - FactoryFunction defaultFactory) const - { - auto it = m_Factories.find(id); - if (it == m_Factories.end()) - { - return defaultFactory; - } - else - { - return it->second; - } - } - size_t Size() const { return m_Factories.size(); @@ -131,4 +117,4 @@ struct StaticRegistryInitializer } }; -} // namespace armnn
\ No newline at end of file +} // namespace armnn |