aboutsummaryrefslogtreecommitdiffhomepage
path: root/src
diff options
context:
space:
mode:
authorNeil <nyamatongwe@gmail.com>2018-03-24 14:16:41 +1100
committerNeil <nyamatongwe@gmail.com>2018-03-24 14:16:41 +1100
commit4692de654d0e973f6ceed4b00d7859ef9b6af254 (patch)
tree9afbdc4c7e8ca830707c9b06b7250a112022f59a /src
parent31fea208290c4e4be494b315ebedaac31963c371 (diff)
downloadscintilla-mirror-4692de654d0e973f6ceed4b00d7859ef9b6af254.tar.gz
Removed unreachable branches in UTF8Classify.
Diffstat (limited to 'src')
-rw-r--r--src/UniConversion.cxx8
1 files changed, 0 insertions, 8 deletions
diff --git a/src/UniConversion.cxx b/src/UniConversion.cxx
index de86b0b76..16a9cef8a 100644
--- a/src/UniConversion.cxx
+++ b/src/UniConversion.cxx
@@ -275,14 +275,6 @@ int UTF8Classify(const unsigned char *us, int len) {
// Check if encoding a value beyond the last Unicode character 10FFFF
if (us[1] > 0x8f) {
return UTF8MaskInvalid | 1;
- } else if (us[1] == 0x8f) {
- if (us[2] > 0xbf) {
- return UTF8MaskInvalid | 1;
- } else if (us[2] == 0xbf) {
- if (us[3] > 0xbf) {
- return UTF8MaskInvalid | 1;
- }
- }
}
} else if ((*us == 0xf0) && ((us[1] & 0xf0) == 0x80)) {
// Overlong