[cig-commits] [commit] QA: Remove unnecessary #include statements. (c3d38ab)
cig_noreply at geodynamics.org
cig_noreply at geodynamics.org
Mon Jan 20 11:49:09 PST 2014
Repository : ssh://geoshell/specfem2d
On branch : QA
Link : https://github.com/geodynamics/specfem2d/compare/28743f19b9f9fdb75d359c135053825c0ffd05b3...5e8aa55e68fd17b6f475fb65531b84195e497aa1
>---------------------------------------------------------------
commit c3d38ab72c199affd738fad2cc5594b2c3d744f6
Author: Elliott Sales de Andrade <esalesde at physics.utoronto.ca>
Date: Mon Jan 6 01:08:49 2014 -0500
Remove unnecessary #include statements.
For system headers, they basically do nothing but take up extra lines.
>---------------------------------------------------------------
c3d38ab72c199affd738fad2cc5594b2c3d744f6
src/specfem2D/attenuation_compute_param.c | 15 ---------------
1 file changed, 15 deletions(-)
diff --git a/src/specfem2D/attenuation_compute_param.c b/src/specfem2D/attenuation_compute_param.c
index cdd53a7..924f330 100644
--- a/src/specfem2D/attenuation_compute_param.c
+++ b/src/specfem2D/attenuation_compute_param.c
@@ -4,12 +4,8 @@
/* cleaned by Dimitri Komatitsch, University of Pau, France, July 2007 */
#include "config.h"
-#include <sys/types.h>
-#include <sys/stat.h>
#include <stdio.h>
#include <math.h>
-#include <sgtty.h>
-#include <signal.h>
#include <stdlib.h>
/* useful constants */
@@ -106,8 +102,6 @@ FC_FUNC_(attenuation_compute_param,ATTENUATION_COMPUTE_PARAM)(int *nmech_in,
}
}
-#include <stdio.h>
-
void nrerror(error_text)
char error_text[];
{
@@ -164,8 +158,6 @@ int nrl,nrh,ncl,nch;
free((char*) (m+nrl));
}
-#include <math.h>
-
static double at,bt,ct;
#define PYTHAG(a,b) ((at=fabs(a)) > (bt=fabs(b)) ? \
(ct=bt/at,at*sqrt(1.0+ct*ct)) : (bt ? (ct=at/bt,bt*sqrt(1.0+ct*ct)): 0.0))
@@ -370,13 +362,6 @@ int m,n;
#undef SIGN
#undef MAX
#undef PYTHAG
-#include <sys/types.h>
-#include <sys/stat.h>
-#include <stdio.h>
-#include <math.h>
-#include <sgtty.h>
-#include <signal.h>
-#include <stdlib.h>
void constant_Q2_sub(f1, f2, n, Q, tau_s, tau_e)
More information about the CIG-COMMITS
mailing list