From 48eb1aee844a3d2aaf333a8231a322b1e1c9a268 Mon Sep 17 00:00:00 2001
From: mattijs <mattijs>
Date: Wed, 15 Feb 2017 12:58:53 +0000
Subject: [PATCH] ENH: treeDataPrimitivePatch: skip surplus test

---
 src/meshTools/indexedOctree/treeDataPrimitivePatch.C | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/meshTools/indexedOctree/treeDataPrimitivePatch.C b/src/meshTools/indexedOctree/treeDataPrimitivePatch.C
index f1c969762bf..b4fcf6b974a 100644
--- a/src/meshTools/indexedOctree/treeDataPrimitivePatch.C
+++ b/src/meshTools/indexedOctree/treeDataPrimitivePatch.C
@@ -532,7 +532,7 @@ bool Foam::treeDataPrimitivePatch<PatchType>::findAllIntersectOp::operator()
     point& intersectionPoint
 ) const
 {
-    if (!shapeMask_.empty() && findIndex(shapeMask_, index) != -1)
+    if (findIndex(shapeMask_, index) != -1)
     {
         return false;
     }
-- 
GitLab