From f6757ce79e7d3866b3833752a18eccb02de96504 Mon Sep 17 00:00:00 2001
From: mattijs <mattijs>
Date: Thu, 1 Aug 2013 15:18:41 +0100
Subject: [PATCH] BUG: surfaceFeatureExtract: extraneous check for CGAL

---
 .../surfaceFeatureExtract.C                   | 22 -------------------
 1 file changed, 22 deletions(-)

diff --git a/applications/utilities/surface/surfaceFeatureExtract/surfaceFeatureExtract.C b/applications/utilities/surface/surfaceFeatureExtract/surfaceFeatureExtract.C
index 9bcc1b64b2a..407828e0389 100644
--- a/applications/utilities/surface/surfaceFeatureExtract/surfaceFeatureExtract.C
+++ b/applications/utilities/surface/surfaceFeatureExtract/surfaceFeatureExtract.C
@@ -974,28 +974,6 @@ int main(int argc, char *argv[])
         const word extractionMethod = surfaceDict.lookup("extractionMethod");
 
 
-#ifndef ENABLE_CURVATURE
-        if (curvature)
-        {
-            WarningIn(args.executable())
-                << "Curvature calculation has been requested but "
-                << args.executable() << " has not " << nl
-                << "    been compiled with CGAL. "
-                << "Skipping the curvature calculation." << endl;
-        }
-#else
-        if (curvature && env("FOAM_SIGFPE"))
-        {
-            WarningIn(args.executable())
-                << "Detected floating point exception trapping (FOAM_SIGFPE)."
-                << " This might give" << nl
-                << "    problems when calculating curvature on straight angles"
-                << " (infinite curvature)" << nl
-                << "    Switch it off in case of problems." << endl;
-        }
-#endif
-
-
         Info<< nl << "Feature line extraction is only valid on closed manifold "
             << "surfaces." << endl;
 
-- 
GitLab