diff options
| author | Paul Eggert | 2017-01-08 10:06:41 -0800 |
|---|---|---|
| committer | Paul Eggert | 2017-01-08 10:07:00 -0800 |
| commit | 8d7bdd75402557d479ae962cc2f869b402fc65fa (patch) | |
| tree | f90be5584d9bdb2d46ef1d34495e40d3ac3764f0 /src/character.c | |
| parent | 3d418bd46fb89bec035394b71fa17ac4bfbebbc5 (diff) | |
| download | emacs-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.
Diffstat (limited to 'src/character.c')
| -rw-r--r-- | src/character.c | 5 |
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) | |||
| 1043 | bool | 1043 | bool |
| 1044 | blankp (int c) | 1044 | blankp (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; |