diff --git a/libethash-cl/ethash_cl_miner.cpp b/libethash-cl/ethash_cl_miner.cpp index b1d4a2994..ea13e8312 100644 --- a/libethash-cl/ethash_cl_miner.cpp +++ b/libethash-cl/ethash_cl_miner.cpp @@ -165,14 +165,6 @@ std::vector ethash_cl_miner::getDevices(std::vector co return devices; } -unsigned ethash_cl_miner::getNumPlatforms() -{ - vector platforms = getPlatforms(); - if (platforms.empty()) - return 0; - return platforms.size(); -} - unsigned ethash_cl_miner::getNumDevices(unsigned _platformId) { vector platforms = getPlatforms(); diff --git a/libethash-cl/ethash_cl_miner.h b/libethash-cl/ethash_cl_miner.h index 8463eff3d..f9ff15016 100644 --- a/libethash-cl/ethash_cl_miner.h +++ b/libethash-cl/ethash_cl_miner.h @@ -46,7 +46,6 @@ public: static bool searchForAllDevices(std::function _callback); static void doForAllDevices(unsigned _platformId, std::function _callback); static void doForAllDevices(std::function _callback); - static unsigned getNumPlatforms(); static unsigned getNumDevices(unsigned _platformId = 0); static std::string platform_info(unsigned _platformId = 0, unsigned _deviceId = 0); static void listDevices();