Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
Remove redundant conditional.
authorArnaud Giersch <arnaud.giersch@univ-fcomte.fr>
Wed, 1 Nov 2017 08:26:50 +0000 (09:26 +0100)
committerArnaud Giersch <arnaud.giersch@univ-fcomte.fr>
Wed, 1 Nov 2017 08:26:50 +0000 (09:26 +0100)
src/mc/remote/RemoteClient.cpp

index c637009..3e7d3e2 100644 (file)
@@ -586,10 +586,7 @@ void RemoteClient::unignore_heap(void* address, size_t size)
   while (start <= end) {
     cursor       = (start + end) / 2;
     auto& region = ignored_heap_[cursor];
-    if (region.address == address) {
-      ignored_heap_.erase(ignored_heap_.begin() + cursor);
-      return;
-    } else if (region.address < address)
+    if (region.address < address)
       start = cursor + 1;
     else if ((char*)region.address <= ((char*)address + size)) {
       ignored_heap_.erase(ignored_heap_.begin() + cursor);