summaryrefslogtreecommitdiff
path: root/src/util.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/util.c')
-rw-r--r--src/util.c30
1 files changed, 0 insertions, 30 deletions
diff --git a/src/util.c b/src/util.c
index e8a46e70..3021efa8 100644
--- a/src/util.c
+++ b/src/util.c
@@ -1927,20 +1927,6 @@ static char inkey_aux(void)
static cptr inkey_next = NULL;
-#ifdef ALLOW_BORG
-
-/*
-* Mega-Hack -- special "inkey_hack" hook. XXX XXX XXX
-*
-* This special function hook allows the "Borg" (see elsewhere) to take
-* control of the "inkey()" function, and substitute in fake keypresses.
-*/
-char (*inkey_hack)(int flush_first) = NULL;
-
-#endif /* ALLOW_BORG */
-
-
-
/*
* Get a keypress from the user.
*
@@ -2033,22 +2019,6 @@ char inkey(void)
inkey_next = NULL;
-#ifdef ALLOW_BORG
-
- /* Mega-Hack -- Use the special hook */
- if (inkey_hack && ((ch = (*inkey_hack)(inkey_xtra)) != 0))
- {
- /* Cancel the various "global parameters" */
- inkey_base = inkey_xtra = inkey_flag = inkey_scan = FALSE;
-
- /* Accept result */
- macro_recorder_add(ch);
- return (ch);
- }
-
-#endif /* ALLOW_BORG */
-
-
/* Hack -- handle delayed "flush()" */
if (inkey_xtra)
{