From 2d3bd40c3dead1cdc391fd771a0bde961065a8a8 Mon Sep 17 00:00:00 2001 From: Ilya Lavrenov Date: Mon, 14 Feb 2022 17:57:27 +0300 Subject: [PATCH] Removed dead code (#10331) --- samples/cpp/benchmark_app/benchmark_app.hpp | 3 ++- samples/cpp/benchmark_app/main.cpp | 1 - src/core/include/openvino/core/any.hpp | 28 --------------------- 3 files changed, 2 insertions(+), 30 deletions(-) diff --git a/samples/cpp/benchmark_app/benchmark_app.hpp b/samples/cpp/benchmark_app/benchmark_app.hpp index c2bbf93cd3a..413083e159a 100644 --- a/samples/cpp/benchmark_app/benchmark_app.hpp +++ b/samples/cpp/benchmark_app/benchmark_app.hpp @@ -390,7 +390,8 @@ static void show_usage() { std::cout << std::endl << " device-specific performance options:" << std::endl; std::cout << " -nstreams \"\" " << infer_num_streams_message << std::endl; std::cout << " -nthreads \"\" " << infer_num_threads_message << std::endl; - std::cout << " -pin \"YES\"/\"HYBRID_AWARE\"/\"NO\"/\"NUMA\" " << infer_threads_pinning_message << std::endl; + std::cout << " -pin (\"YES\"|\"CORE\")/\"HYBRID_AWARE\"/(\"NO\"|\"NONE\")/\"NUMA\" " + << infer_threads_pinning_message << std::endl; #ifdef HAVE_DEVICE_MEM_SUPPORT std::cout << " -use_device_mem " << use_device_mem_message << std::endl; #endif diff --git a/samples/cpp/benchmark_app/main.cpp b/samples/cpp/benchmark_app/main.cpp index 488c14e6319..b856acd6087 100644 --- a/samples/cpp/benchmark_app/main.cpp +++ b/samples/cpp/benchmark_app/main.cpp @@ -300,7 +300,6 @@ int main(int argc, char* argv[]) { auto it_device_nstreams = device_nstreams.find(device); if (it_device_nstreams != device_nstreams.end()) { // set to user defined value - auto supported_properties = core.get_property(device, ov::supported_properties); if (supported(key)) { device_config[key] = it_device_nstreams->second; } else if (supported(ov::num_streams.name())) { diff --git a/src/core/include/openvino/core/any.hpp b/src/core/include/openvino/core/any.hpp index 73da173599a..8db452d00fc 100644 --- a/src/core/include/openvino/core/any.hpp +++ b/src/core/include/openvino/core/any.hpp @@ -344,34 +344,6 @@ class OPENVINO_API Any { } }; - template - struct HasOnAttribute { - template - static auto test(U*) - -> decltype(std::declval().on_attribute(std::declval()), std::true_type()) { - return {}; - } - template - static auto test(...) -> std::false_type { - return {}; - } - constexpr static const auto value = std::is_same(nullptr))>::value; - }; - - template - struct Visitable { - template - static auto test(U*) - -> decltype(std::declval().visit_attributes(std::declval()), std::true_type()) { - return {}; - } - template - static auto test(...) -> std::false_type { - return {}; - } - constexpr static const auto value = std::is_same(nullptr))>::value; - }; - static bool equal(std::type_index lhs, std::type_index rhs); /**