From 629badfbd92ead8d72be2d0b973d9ec5185e992f Mon Sep 17 00:00:00 2001 From: nhmall Date: Tue, 12 Mar 2024 16:18:23 -0400 Subject: [PATCH] more code cleanup remove disabled code from makedefs.c because it uses a function in hacklib now. --- util/makedefs.c | 25 ------------------------- 1 file changed, 25 deletions(-) diff --git a/util/makedefs.c b/util/makedefs.c index 4b91193f1..d9ce2225b 100644 --- a/util/makedefs.c +++ b/util/makedefs.c @@ -166,9 +166,6 @@ extern void objects_globals_init(void); /* objects.c */ static char *name_file(const char *, const char *); static FILE *getfp(const char *, const char *, const char *, int); static void do_ext_makedefs(int, char **); -#if 0 -static char *xcrypt(const char *); -#endif static char *padline(char *, unsigned); static unsigned long read_rumors_file(const char *, int *, long *, unsigned long, unsigned); @@ -976,28 +973,6 @@ grep0(FILE *inputfp0, FILE* outputfp0, int flg) return; } -#if 0 -/* trivial text encryption routine which can't be broken with `tr' */ -static char * -xcrypt(const char *str) -{ /* slightly different version in src/hacklib.c */ - static char buf[BUFSZ]; - const char *p; - char *q; - int bitmask; - - for (bitmask = 1, p = str, q = buf; *p; q++) { - *q = *p++; - if (*q & (32 | 64)) - *q ^= bitmask; - if ((bitmask <<= 1) >= 32) - bitmask = 1; - } - *q = '\0'; - return buf; -} -#endif - static char * padline(char *line, unsigned padlength) {