diff options
author | Bardur Arantsson <bardur@scientician.net> | 2014-06-07 08:41:37 +0200 |
---|---|---|
committer | Bardur Arantsson <bardur@scientician.net> | 2014-06-27 17:51:48 +0200 |
commit | 757f5c88ff79073ebd286a9b610ee56ba64e6495 (patch) | |
tree | 42a43c038ffefd8b86afe9a87147af339b5d6f38 /src | |
parent | 66c6c68e082ef28aaebd29ac1dc54f11c4ff7b9b (diff) |
Remove dead code
Diffstat (limited to 'src')
-rw-r--r-- | src/z-util.c | 57 | ||||
-rw-r--r-- | src/z-util.h | 12 |
2 files changed, 0 insertions, 69 deletions
diff --git a/src/z-util.c b/src/z-util.c index 4e10a67b..95f11d7a 100644 --- a/src/z-util.c +++ b/src/z-util.c @@ -67,63 +67,6 @@ cptr argv0 = NULL; /* - * A routine that does nothing - */ -void func_nothing(void) -{ - /* Do nothing */ -} - - -/* - * A routine that always returns "success" - */ -errr func_success(void) -{ - return (0); -} - - -/* - * A routine that always returns a simple "problem code" - */ -errr func_problem(void) -{ - return (1); -} - - -/* - * A routine that always returns a simple "failure code" - */ -errr func_failure(void) -{ - return ( -1); -} - - - -/* - * A routine that always returns "true" - */ -bool_ func_true(void) -{ - return (1); -} - - -/* - * A routine that always returns "false" - */ -bool_ func_false(void) -{ - return (0); -} - - - - -/* * Determine if string "t" is equal to string "t" */ bool_ streq(cptr a, cptr b) diff --git a/src/z-util.h b/src/z-util.h index ef277e00..b9554637 100644 --- a/src/z-util.h +++ b/src/z-util.h @@ -51,18 +51,6 @@ extern void (*core_aux)(cptr); /**** Available Functions ****/ -/* Function that does nothing */ -extern void func_nothing(void); - -/* Functions that return basic "errr" codes */ -extern errr func_success(void); -extern errr func_problem(void); -extern errr func_failure(void); - -/* Functions that return bools */ -extern bool_ func_true(void); -extern bool_ func_false(void); - /* Test equality, prefix, suffix */ extern bool_ streq(cptr s, cptr t); |