Removed duplicate strings.

This commit is contained in:
XMRig 2021-08-11 22:07:43 +07:00
parent aee0762424
commit e9ae4deb91
No known key found for this signature in database
GPG key ID: 446A53638BE94409
6 changed files with 60 additions and 63 deletions

View file

@ -36,7 +36,6 @@ namespace xmrig {
static const char *kAsterisk = "*";
static const char *kCn2 = "cn/2";
} // namespace xmrig
@ -118,8 +117,8 @@ xmrig::String xmrig::Threads<T>::profileName(const Algorithm &algorithm, bool st
return String();
}
if (algorithm.family() == Algorithm::CN && algorithm.base() == Algorithm::CN_2 && has(kCn2)) {
return kCn2;
if (algorithm.family() == Algorithm::CN && algorithm.base() == Algorithm::CN_2 && has(Algorithm::kCN_2)) {
return Algorithm::kCN_2;
}
if (name.contains("/")) {