aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPaul Eggert2017-01-08 10:06:41 -0800
committerPaul Eggert2017-01-08 10:07:00 -0800
commit8d7bdd75402557d479ae962cc2f869b402fc65fa (patch)
treef90be5584d9bdb2d46ef1d34495e40d3ac3764f0
parent3d418bd46fb89bec035394b71fa17ac4bfbebbc5 (diff)
downloademacs-8d7bdd75402557d479ae962cc2f869b402fc65fa.tar.gz
emacs-8d7bdd75402557d479ae962cc2f869b402fc65fa.zip
Remove unnecessary blankp code
* src/character.c (blankp): Remove redundant code that slows Emacs down a bit. The caller already does the test.
-rw-r--r--src/character.c5
1 files changed, 0 insertions, 5 deletions
diff --git a/src/character.c b/src/character.c
index bc99daf0df0..cf460540725 100644
--- a/src/character.c
+++ b/src/character.c
@@ -1043,11 +1043,6 @@ printablep (int c)
1043bool 1043bool
1044blankp (int c) 1044blankp (int c)
1045{ 1045{
1046 /* Fast path for ASCII characters that are always assumed to
1047 constitute horizontal whitespace. */
1048 if (c == ' ' || c == '\t')
1049 return true;
1050
1051 Lisp_Object category = CHAR_TABLE_REF (Vunicode_category_table, c); 1046 Lisp_Object category = CHAR_TABLE_REF (Vunicode_category_table, c);
1052 if (! INTEGERP (category)) 1047 if (! INTEGERP (category))
1053 return false; 1048 return false;