diff src/marker.c @ 840:1e4e42de23d5

[xemacs-hg @ 2002-05-14 13:03:54 by ben] To: xemacs-patches@xemacs.org callproc.c: Use Fget_buffer_create() with a string buffer, as documented. extents.c: indentation. lstream.c: fix a bug in selective-display handling; not the crash we're seeing. marker.c: delete superfluous error-checking -- it's already there in bytebpos_to_membpos() and vice-versa.
author ben
date Tue, 14 May 2002 13:04:00 +0000
parents 6728e641994e
children c925bacdda60
line wrap: on
line diff
--- a/src/marker.c	Tue May 14 10:57:38 2002 +0000
+++ b/src/marker.c	Tue May 14 13:04:00 2002 +0000
@@ -336,11 +336,6 @@
      positions. */
   pos = membpos_to_bytebpos (buf, m->membpos);
 
-#ifdef ERROR_CHECK_TEXT
-  if (pos < BYTE_BUF_BEG (buf) || pos > BYTE_BUF_Z (buf))
-    abort ();
-#endif
-
   return pos;
 }
 
@@ -364,11 +359,6 @@
   if (!buf)
     invalid_argument ("Marker does not point anywhere", Qunbound);
 
-#ifdef ERROR_CHECK_TEXT
-  if (pos < BYTE_BUF_BEG (buf) || pos > BYTE_BUF_Z (buf))
-    abort ();
-#endif
-
   m->membpos = bytebpos_to_membpos (buf, pos);
 }