diff options
author | Bardur Arantsson <bardur@scientician.net> | 2014-06-26 07:25:00 +0200 |
---|---|---|
committer | Bardur Arantsson <bardur@scientician.net> | 2014-06-26 07:28:53 +0200 |
commit | ec23e119e24a32f4607dfdc0f43e8726febc4043 (patch) | |
tree | 34a13ebe1eb56cdc69a08df7a7b9ce879fd6e3e0 /src/z-term.c | |
parent | 27b26f3940a589d8df800254b66de87f75b28758 (diff) |
Remove pointless Term_user
Diffstat (limited to 'src/z-term.c')
-rw-r--r-- | src/z-term.c | 23 |
1 files changed, 0 insertions, 23 deletions
diff --git a/src/z-term.c b/src/z-term.c index e9941117..be9190b6 100644 --- a/src/z-term.c +++ b/src/z-term.c @@ -184,17 +184,12 @@ * * Term->init_hook = Init the term * Term->nuke_hook = Nuke the term - * Term->user_hook = Perform user actions * Term->xtra_hook = Perform extra actions * Term->curs_hook = Draw (or Move) the cursor * Term->wipe_hook = Draw some blank spaces * Term->text_hook = Draw some text in the window * Term->pict_hook = Draw some attr/chars in the window * - * The "Term->user_hook" hook provides a simple hook to an implementation - * defined function, with application defined semantics. It is available - * to the program via the "Term_user()" function. - * * The "Term->xtra_hook" hook provides a variety of different functions, * based on the first parameter (which should be taken from the various * TERM_XTRA_* defines) and the second parameter (which may make sense @@ -254,12 +249,6 @@ * files use "white space" ("attr 1" / "char 32") to "erase" or "clear" * any window, for efficiency. * - * The game "Angband" uses the "Term_user" hook to allow any of the - * "main-xxx.c" files to interact with the user, by calling this hook - * whenever the user presses the "!" key when the game is waiting for - * a new command. This could be used, for example, to provide "unix - * shell commands" to the Unix versions of the game. - * * See "main-xxx.c" for a simple skeleton file which can be used to * create a "visual system" for a new platform when porting Angband. */ @@ -416,18 +405,6 @@ static errr term_win_copy(term_win *s, term_win *f, int w, int h) /* - * Execute the "Term->user_hook" hook, if available (see above). - */ -errr Term_user(int n) -{ - /* Verify the hook */ - if (!Term->user_hook) return ( -1); - - /* Call the hook */ - return ((*Term->user_hook)(n)); -} - -/* * Execute the "Term->xtra_hook" hook, if available (see above). * And *hacky* get a return code */ |