From c9e3c7919d23b7d5db95e899b764eae5734aeb96 Mon Sep 17 00:00:00 2001 From: Niklas Eiling Date: Thu, 5 Jan 2023 17:05:29 +0100 Subject: [PATCH] graph: remove map key test with map size Signed-off-by: Niklas Eiling --- common/include/villas/graph/directed.hpp | 3 --- 1 file changed, 3 deletions(-) diff --git a/common/include/villas/graph/directed.hpp b/common/include/villas/graph/directed.hpp index 01a955009..0f084a950 100644 --- a/common/include/villas/graph/directed.hpp +++ b/common/include/villas/graph/directed.hpp @@ -42,9 +42,6 @@ public: std::shared_ptr getVertex(VertexIdentifier vertexId) const { - if (vertexId >= vertices.size()) - throw std::invalid_argument("vertex doesn't exist"); - // Cannot use [] operator, because creates non-existing elements // at() will throw std::out_of_range if element does not exist return vertices.at(vertexId);