More code tidying with Array

This commit is contained in:
gingerBill
2018-02-25 20:24:38 +00:00
parent e75563cb32
commit 69062ba3ab
7 changed files with 89 additions and 82 deletions
+2 -3
View File
@@ -2037,8 +2037,7 @@ String path_to_entity_name(String name, String fullpath) {
slash = i;
}
filename.text += slash;
filename.len -= slash;
filename = substring(filename, slash, filename.len);
dot = filename.len;
while (dot --> 0) {
@@ -2048,7 +2047,7 @@ String path_to_entity_name(String name, String fullpath) {
}
}
filename.len = dot;
filename = substring(filename, 0, dot);
if (is_string_an_identifier(filename)) {
return filename;