[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Emacs-diffs] master 8d7bdd7: Remove unnecessary blankp code
From: |
Paul Eggert |
Subject: |
[Emacs-diffs] master 8d7bdd7: Remove unnecessary blankp code |
Date: |
Sun, 8 Jan 2017 18:07:04 +0000 (UTC) |
branch: master
commit 8d7bdd75402557d479ae962cc2f869b402fc65fa
Author: Paul Eggert <address@hidden>
Commit: Paul Eggert <address@hidden>
Remove unnecessary blankp code
* src/character.c (blankp): Remove redundant code that slows Emacs
down a bit. The caller already does the test.
---
src/character.c | 5 -----
1 file changed, 5 deletions(-)
diff --git a/src/character.c b/src/character.c
index bc99daf..cf46054 100644
--- a/src/character.c
+++ b/src/character.c
@@ -1043,11 +1043,6 @@ printablep (int c)
bool
blankp (int c)
{
- /* Fast path for ASCII characters that are always assumed to
- constitute horizontal whitespace. */
- if (c == ' ' || c == '\t')
- return true;
-
Lisp_Object category = CHAR_TABLE_REF (Vunicode_category_table, c);
if (! INTEGERP (category))
return false;
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Emacs-diffs] master 8d7bdd7: Remove unnecessary blankp code,
Paul Eggert <=