diff --git a/libethash-cl/ethash_cl_miner.cpp b/libethash-cl/ethash_cl_miner.cpp index ea13e8312..277d3300d 100644 --- a/libethash-cl/ethash_cl_miner.cpp +++ b/libethash-cl/ethash_cl_miner.cpp @@ -222,18 +222,6 @@ unsigned ethash_cl_miner::s_extraRequiredGPUMem; unsigned ethash_cl_miner::s_workgroupSize = ethash_cl_miner::c_defaultLocalWorkSize; unsigned ethash_cl_miner::s_initialGlobalWorkSize = ethash_cl_miner::c_defaultGlobalWorkSizeMultiplier * ethash_cl_miner::c_defaultLocalWorkSize; -bool ethash_cl_miner::searchForAllDevices(function _callback) -{ - vector platforms = getPlatforms(); - if (platforms.empty()) - return false; - for (unsigned i = 0; i < platforms.size(); ++i) - if (searchForAllDevices(i, _callback)) - return true; - - return false; -} - bool ethash_cl_miner::searchForAllDevices(unsigned _platformId, function _callback) { vector platforms = getPlatforms(); diff --git a/libethash-cl/ethash_cl_miner.h b/libethash-cl/ethash_cl_miner.h index f9ff15016..3d2ea5ee5 100644 --- a/libethash-cl/ethash_cl_miner.h +++ b/libethash-cl/ethash_cl_miner.h @@ -43,7 +43,6 @@ public: ~ethash_cl_miner(); static bool searchForAllDevices(unsigned _platformId, std::function _callback); - static bool searchForAllDevices(std::function _callback); static void doForAllDevices(unsigned _platformId, std::function _callback); static void doForAllDevices(std::function _callback); static unsigned getNumDevices(unsigned _platformId = 0);