| 177 | } |
| 178 | |
| 179 | void CudaKeySearchDevice::removeTargetFromList(const unsigned int hash[5]) |
| 180 | { |
| 181 | size_t count = _targets.size(); |
| 182 | |
| 183 | while(count) { |
| 184 | if(memcmp(hash, _targets[count - 1].h, 20) == 0) { |
| 185 | _targets.erase(_targets.begin() + count - 1); |
| 186 | return; |
| 187 | } |
| 188 | count--; |
| 189 | } |
| 190 | } |
| 191 | |
| 192 | bool CudaKeySearchDevice::isTargetInList(const unsigned int hash[5]) |
| 193 | { |
nothing calls this directly
no outgoing calls
no test coverage detected