@@ -40,15 +40,9 @@ static int cmp_sys(enum novas_reference_system a, enum novas_reference_system b)
40
40
}
41
41
42
42
static int matrix_transform (const double * in , const novas_matrix * matrix , double * out ) {
43
- static const char * fn = "novas_matrix_transform" ;
44
43
double orig [3 ];
45
44
int i ;
46
45
47
- if (!in || !out )
48
- return novas_error (-1 , EINVAL , fn , "NULL coordinate: in=%p, out=%p" , in , out );
49
- if (!matrix )
50
- return novas_error (-1 , EINVAL , fn , "NULL matrix pointer" );
51
-
52
46
memcpy (orig , in , sizeof (orig ));
53
47
54
48
for (i = 3 ; -- i >= 0 ;)
@@ -60,15 +54,9 @@ static int matrix_transform(const double *in, const novas_matrix *matrix, double
60
54
61
55
static int matrix_inv_rotate (const double * in , const novas_matrix * matrix , double * out ) {
62
56
// IMPORTANT! use only with unitary matrices.
63
- static const char * fn = "novas_matrix_transform" ;
64
57
double orig [3 ];
65
58
int i ;
66
59
67
- if (!in || !out )
68
- return novas_error (-1 , EINVAL , fn , "NULL coordinate: in=%p, out=%p" , in , out );
69
- if (!matrix )
70
- return novas_error (-1 , EINVAL , fn , "NULL matrix pointer" );
71
-
72
60
memcpy (orig , in , sizeof (orig ));
73
61
74
62
for (i = 3 ; -- i >= 0 ;)
@@ -286,7 +274,6 @@ int novas_make_frame(enum novas_accuracy accuracy, const observer *obs, const no
286
274
double mobl , tobl , ee , dpsi , deps ;
287
275
long ijd_ut1 ;
288
276
double fjd_ut1 ;
289
- int err ;
290
277
291
278
if (accuracy < 0 || accuracy > NOVAS_REDUCED_ACCURACY )
292
279
return novas_error (-1 , EINVAL , fn , "invalid accuracy: %d" , accuracy );
0 commit comments