Remove useless subsection from hooks documentation
authorAndy Wingo <wingo@pobox.com>
Wed, 1 Mar 2017 20:45:14 +0000 (21:45 +0100)
committerAndy Wingo <wingo@pobox.com>
Wed, 1 Mar 2017 20:45:14 +0000 (21:45 +0100)
* doc/ref/api-utility.texi (Hook Reference): Remove useless "handling
  hooks from C" section that was also generating warnings.

doc/ref/api-utility.texi

index e2b60e2f923462ad83de5e01127741c24c78e1a3..d82d31a4877a99e98089b2d14b041401814350b7 100644 (file)
@@ -612,20 +612,6 @@ Return 1 if @var{x} is a Scheme-level hook, 0 otherwise.
 @end deftypefn
 
 
-@subsubsection Handling Scheme-level hooks from C code
-
-Here is an example of how to handle Scheme-level hooks from C code using
-the above functions.
-
-@example
-if (scm_is_true (scm_hook_p (obj)))
-  /* handle Scheme-level hook using C functions */
-  scm_reset_hook_x (obj);
-else
-  /* do something else (obj is not a hook) */
-@end example
-
-
 @node C Hooks
 @subsubsection Hooks For C Code.