gnuastro-commits
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[gnuastro-commits] master e8228bf4: Library: removed un-necessary GSL he


From: Mohammad Akhlaghi
Subject: [gnuastro-commits] master e8228bf4: Library: removed un-necessary GSL header includes
Date: Sun, 12 May 2024 14:39:55 -0400 (EDT)

branch: master
commit e8228bf415ae06b2c24b6892a1e809c91e87f36c
Author: Mohammad Akhlaghi <mohammad@akhlaghi.org>
Commit: Mohammad Akhlaghi <mohammad@akhlaghi.org>

    Library: removed un-necessary GSL header includes
    
    Until now, there were multiple instances of including GSL header files that
    were not actually used within that file. Mostly just for historical
    reasons: we originally had a function to do use that header, but that
    function has moved to another file within Gnuastro.
    
    With this commit, the un-necessary GSL header files that I could check in a
    short time are removed (there may be more, but that needs more thorough
    checks).
---
 bin/cosmiccal/ui.c          | 2 --
 bin/statistics/statistics.c | 2 --
 bin/table/table.c           | 1 -
 lib/box.c                   | 2 --
 lib/gnuastro/type.h         | 2 --
 lib/type.c                  | 2 ++
 lib/units.c                 | 2 --
 7 files changed, 2 insertions(+), 11 deletions(-)

diff --git a/bin/cosmiccal/ui.c b/bin/cosmiccal/ui.c
index 45a1ed41..6fc5fad6 100644
--- a/bin/cosmiccal/ui.c
+++ b/bin/cosmiccal/ui.c
@@ -28,8 +28,6 @@ along with Gnuastro. If not, see 
<http://www.gnu.org/licenses/>.
 #include <stdio.h>
 #include <string.h>
 
-#include <gsl/gsl_const_mksa.h>
-
 #include <gnuastro/fits.h>
 #include <gnuastro/table.h>
 #include <gnuastro/pointer.h>
diff --git a/bin/statistics/statistics.c b/bin/statistics/statistics.c
index a0c6cc02..aeb59e27 100644
--- a/bin/statistics/statistics.c
+++ b/bin/statistics/statistics.c
@@ -30,8 +30,6 @@ along with Gnuastro. If not, see 
<http://www.gnu.org/licenses/>.
 #include <string.h>
 #include <stdlib.h>
 
-#include <gsl/gsl_fit.h>
-
 #include <gnuastro/fit.h>
 #include <gnuastro/wcs.h>
 #include <gnuastro/fits.h>
diff --git a/bin/table/table.c b/bin/table/table.c
index 92b9d39d..88b35ce7 100644
--- a/bin/table/table.c
+++ b/bin/table/table.c
@@ -30,7 +30,6 @@ along with Gnuastro. If not, see 
<http://www.gnu.org/licenses/>.
 #include <unistd.h>
 
 #include <gsl/gsl_rng.h>
-#include <gsl/gsl_heapsort.h>
 
 #include <gnuastro/txt.h>
 #include <gnuastro/wcs.h>
diff --git a/lib/box.c b/lib/box.c
index 8a5b7acf..a488c95e 100644
--- a/lib/box.c
+++ b/lib/box.c
@@ -28,8 +28,6 @@ along with Gnuastro. If not, see 
<http://www.gnu.org/licenses/>.
 #include <error.h>
 #include <stdlib.h>
 
-#include <gsl/gsl_math.h>
-
 #include <gnuastro/box.h>
 
 
diff --git a/lib/gnuastro/type.h b/lib/gnuastro/type.h
index 0d3c51f4..15075c2b 100644
--- a/lib/gnuastro/type.h
+++ b/lib/gnuastro/type.h
@@ -47,8 +47,6 @@ along with Gnuastro. If not, see 
<http://www.gnu.org/licenses/>.
 #include <limits.h>
 #include <stdint.h>
 
-#include <gsl/gsl_complex.h>
-
 /* When we are within Gnuastro's building process, 'IN_GNUASTRO_BUILD' is
    defined. In the build process, installation information (in particular
    'GAL_CONFIG_SIZEOF_SIZE_T' that we need below) is kept in
diff --git a/lib/type.c b/lib/type.c
index c647a6e1..08b55578 100644
--- a/lib/type.c
+++ b/lib/type.c
@@ -31,6 +31,8 @@ along with Gnuastro. If not, see 
<http://www.gnu.org/licenses/>.
 #include <string.h>
 #include <inttypes.h>
 
+#include <gsl/gsl_complex.h>
+
 #include <gnuastro/type.h>
 #include <gnuastro/data.h>
 #include <gnuastro/list.h>
diff --git a/lib/units.c b/lib/units.c
index 2041861d..e727f00a 100644
--- a/lib/units.c
+++ b/lib/units.c
@@ -31,8 +31,6 @@ along with Gnuastro. If not, see 
<http://www.gnu.org/licenses/>.
 #include <stdlib.h>
 #include <string.h>
 
-#include <gsl/gsl_math.h>
-
 #include <gnuastro/type.h>
 #include <gnuastro/pointer.h>
 



reply via email to

[Prev in Thread] Current Thread [Next in Thread]