From cbbac4c2d02265bb65e3d61fafed87cd3f6fe53d Mon Sep 17 00:00:00 2001
From: Dmitri Naumov <github@naumov.de>
Date: Tue, 16 Mar 2021 17:37:15 +0100
Subject: [PATCH] [PL/PV] Remove unnecessary if-condition.

Same thing is checked after the find_if.
---
 ProcessLib/ProcessVariable.cpp | 6 ------
 1 file changed, 6 deletions(-)

diff --git a/ProcessLib/ProcessVariable.cpp b/ProcessLib/ProcessVariable.cpp
index 990bdf1c6b2..92d111ae71f 100644
--- a/ProcessLib/ProcessVariable.cpp
+++ b/ProcessLib/ProcessVariable.cpp
@@ -279,12 +279,6 @@ void ProcessVariable::createBoundaryConditionsForDeactivatedSubDomains(
 
 void ProcessVariable::updateDeactivatedSubdomains(double const time)
 {
-    if (_deactivated_subdomains.empty())
-    {
-        _ids_of_active_elements.clear();
-        return;
-    }
-
     auto found_a_set =
         std::find_if(_deactivated_subdomains.begin(),
                      _deactivated_subdomains.end(),
-- 
GitLab