From 2d644a5ffde8f1657c83d490d6231f70cf314be4 Mon Sep 17 00:00:00 2001 From: Arnaud Giersch Date: Mon, 25 Apr 2022 12:16:39 +0200 Subject: [PATCH] Kill redundant code. --- src/smpi/internals/smpi_replay.cpp | 6 ------ 1 file changed, 6 deletions(-) diff --git a/src/smpi/internals/smpi_replay.cpp b/src/smpi/internals/smpi_replay.cpp index 9f4bba0daf..491799b03b 100644 --- a/src/smpi/internals/smpi_replay.cpp +++ b/src/smpi/internals/smpi_replay.cpp @@ -145,9 +145,6 @@ public: void add(MPI_Request req) { if (req != MPI_REQUEST_NULL){ // Can and does happen in the case of TestAction - auto it = store.find(req_key_t(req->src()-1, req->dst()-1, req->tag())); - if (it == store.end()) - store.insert({req_key_t(req->src()-1, req->dst()-1, req->tag()), std::list()}); store[req_key_t(req->src()-1, req->dst()-1, req->tag())].push_back(req); } } @@ -157,9 +154,6 @@ public: { int src_pid = MPI_COMM_WORLD->group()->actor(src) - 1; int dest_pid = MPI_COMM_WORLD->group()->actor(dst) - 1; - auto it = store.find(req_key_t(src_pid, dest_pid, tag)); - if (it == store.end()) - store.insert({req_key_t(src_pid, dest_pid, tag), std::list()}); store[req_key_t(src_pid, dest_pid, tag)].push_back(MPI_REQUEST_NULL); } }; -- 2.20.1