[Scummvm-git-logs] scummvm master -> 2eaa86edda191f39cf6ad1c690136653dd63d2ed
sev-
sev at scummvm.org
Tue Feb 25 00:00:45 UTC 2020
This automated email contains information about 1 new commit which have been
pushed to the 'scummvm' repo located at https://github.com/scummvm/scummvm .
Summary:
2eaa86edda DIRECTOR: Remove redundant code
Commit: 2eaa86edda191f39cf6ad1c690136653dd63d2ed
https://github.com/scummvm/scummvm/commit/2eaa86edda191f39cf6ad1c690136653dd63d2ed
Author: Eugene Sandulenko (sev at scummvm.org)
Date: 2020-02-25T01:00:29+01:00
Commit Message:
DIRECTOR: Remove redundant code
Changed paths:
engines/director/util.cpp
diff --git a/engines/director/util.cpp b/engines/director/util.cpp
index b3c1d4cd9c..1b674ba097 100644
--- a/engines/director/util.cpp
+++ b/engines/director/util.cpp
@@ -184,23 +184,8 @@ Common::String pathMakeRelative(Common::String path) {
//////////////////
////// Mac --> Windows filename conversion
//////////////////
-static byte myToUpper(byte c) {
- if (c >= 'a' && c <= 'z')
- c -= ('a' - 'A');
- return c;
-}
-
static bool myIsVowel(byte c) {
- switch (myToUpper(c)) {
- case 'A':
- case 'E':
- case 'I':
- case 'O':
- case 'U':
- return true;
- default:
- return false;
- }
+ return c == 'A' || c == 'E' || c == 'I' || c == 'O' || c == 'U';
}
static bool myIsAlpha(byte c) {
More information about the Scummvm-git-logs
mailing list