]> code.delx.au - gnu-emacs/commitdiff
Remove CHECK_FRAME_FONT cruft from bytecode.c
authorPaul Eggert <eggert@cs.ucla.edu>
Tue, 12 Jul 2016 23:16:10 +0000 (01:16 +0200)
committerPaul Eggert <eggert@cs.ucla.edu>
Wed, 20 Jul 2016 08:40:46 +0000 (10:40 +0200)
* src/bytecode.c [CHECK_FRAME_FONT]: Do not include frame.h, xterm.h.
Remove some old ‘#if 0’ code.

src/bytecode.c

index 1b02c60c618d075c373e7b08f9716ef74d162bd8..8b700b0312a540fefecbe3b2a77622d79ac7d182 100644 (file)
@@ -27,11 +27,6 @@ along with GNU Emacs.  If not, see <http://www.gnu.org/licenses/>.  */
 #include "syntax.h"
 #include "window.h"
 
-#ifdef CHECK_FRAME_FONT
-#include "frame.h"
-#include "xterm.h"
-#endif
-
 /* Work around GCC bug 54561.  */
 #if GNUC_PREREQ (4, 3, 0)
 # pragma GCC diagnostic ignored "-Wclobbered"
@@ -439,16 +434,6 @@ exec_byte_code (Lisp_Object bytestr, Lisp_Object vector, Lisp_Object maxdepth,
   Lisp_Object result;
   enum handlertype type;
 
-#if 0 /* CHECK_FRAME_FONT */
- {
-   struct frame *f = SELECTED_FRAME ();
-   if (FRAME_X_P (f)
-       && FRAME_FONT (f)->direction != 0
-       && FRAME_FONT (f)->direction != 1)
-     emacs_abort ();
- }
-#endif
-
   CHECK_STRING (bytestr);
   CHECK_VECTOR (vector);
   CHECK_NATNUM (maxdepth);