From a0cb0717747278d0057c95735f9515994e94adff Mon Sep 17 00:00:00 2001 From: Wiktor Adamski Date: Mon, 28 Jan 2019 13:43:24 +0100 Subject: [PATCH] Removed unused function --- mace/core/runtime/opencl/opencl_runtime.cc | 14 -------------- 1 file changed, 14 deletions(-) diff --git a/mace/core/runtime/opencl/opencl_runtime.cc b/mace/core/runtime/opencl/opencl_runtime.cc index 1ee0e995..31cd5a54 100644 --- a/mace/core/runtime/opencl/opencl_runtime.cc +++ b/mace/core/runtime/opencl/opencl_runtime.cc @@ -229,20 +229,6 @@ GPUType ParseGPUType(const std::string &device_name) { } } -std::string FindFirstExistPath(const std::vector &paths) { - std::string result; - struct stat st; - for (auto path : paths) { - if (stat(path.c_str(), &st) == 0) { - if (S_ISREG(st.st_mode)) { - result = path; - break; - } - } - } - return result; -} - const char *kOpenCLPlatformInfoKey = "mace_opencl_precompiled_platform_info_key"; } // namespace -- GitLab