From 4e11f4852935731834e8896a089be4e4c207658f Mon Sep 17 00:00:00 2001 From: Matthew Fernandez Date: Thu, 5 May 2022 18:26:30 -0700 Subject: [PATCH] neatogen: remove unused 'rk_long' --- lib/neatogen/randomkit.c | 6 ------ lib/neatogen/randomkit.h | 5 ----- 2 files changed, 11 deletions(-) diff --git a/lib/neatogen/randomkit.c b/lib/neatogen/randomkit.c index 1a76e4f93..848879c27 100644 --- a/lib/neatogen/randomkit.c +++ b/lib/neatogen/randomkit.c @@ -142,12 +142,6 @@ rk_random(rk_state *state) return y; } -long -rk_long(rk_state *state) -{ - return rk_ulong(state) >> 1; -} - unsigned long rk_ulong(rk_state *state) { diff --git a/lib/neatogen/randomkit.h b/lib/neatogen/randomkit.h index de0e0d066..3ffe4a301 100644 --- a/lib/neatogen/randomkit.h +++ b/lib/neatogen/randomkit.h @@ -120,11 +120,6 @@ extern void rk_seed(unsigned long seed, rk_state *state); */ extern unsigned long rk_random(rk_state *state); -/* - * Returns a random long between 0 and LONG_MAX inclusive - */ -extern long rk_long(rk_state *state); - /* * Returns a random unsigned long between 0 and ULONG_MAX inclusive */ -- 2.40.0