From 5ccada69255426e77798992309708d7ffdf8caf6 Mon Sep 17 00:00:00 2001 From: Matthew Fernandez Date: Thu, 5 May 2022 18:34:13 -0700 Subject: [PATCH] neatogen: remove unused 'rk_state' members --- lib/neatogen/randomkit.c | 3 --- lib/neatogen/randomkit.h | 26 -------------------------- 2 files changed, 29 deletions(-) diff --git a/lib/neatogen/randomkit.c b/lib/neatogen/randomkit.c index 7f1d43c11..9c9b20b4d 100644 --- a/lib/neatogen/randomkit.c +++ b/lib/neatogen/randomkit.c @@ -91,9 +91,6 @@ rk_seed(unsigned long seed, rk_state *state) seed = (1812433253UL * (seed ^ (seed >> 30)) + pos + 1) & 0xffffffffUL; } state->pos = RK_STATE_LEN; - state->gauss = 0; - state->has_gauss = 0; - state->has_binomial = 0; } /* Magic Mersenne Twister constants */ diff --git a/lib/neatogen/randomkit.h b/lib/neatogen/randomkit.h index 4e98a8cd5..d8e77ed2b 100644 --- a/lib/neatogen/randomkit.h +++ b/lib/neatogen/randomkit.h @@ -64,32 +64,6 @@ typedef struct rk_state_ { unsigned long key[RK_STATE_LEN]; int pos; - int has_gauss; /* !=0: gauss contains a gaussian deviate */ - double gauss; - - /* The rk_state structure has been extended to store the following - * information for the binomial generator. If the input values of n or p - * are different than nsave and psave, then the other parameters will be - * recomputed. RTK 2005-09-02 */ - - int has_binomial; /* !=0: following parameters initialized for - binomial */ - double psave; - long nsave; - double r; - double q; - double fm; - long m; - double p1; - double xm; - double xl; - double xr; - double c; - double laml; - double lamr; - double p2; - double p3; - double p4; } rk_state; -- 2.40.0