diff options
author | Rémi Verschelde <rverschelde@gmail.com> | 2020-05-14 13:23:58 +0200 |
---|---|---|
committer | Rémi Verschelde <rverschelde@gmail.com> | 2020-05-14 16:54:55 +0200 |
commit | 0be6d925dc3c6413bce7a3ccb49631b8e4a6e67a (patch) | |
tree | a27e497da7104dd0a64f98a04fa3067668735e91 /core/string_builder.cpp | |
parent | 710b34b70227becdc652b4ae027fe0ac47409642 (diff) |
Style: clang-format: Disable KeepEmptyLinesAtTheStartOfBlocks
Which means that reduz' beloved style which we all became used to
will now be changed automatically to remove the first empty line.
This makes us lean closer to 1TBS (the one true brace style) instead
of hybridating it with some Allman-inspired spacing.
There's still the case of braces around single-statement blocks that
needs to be addressed (but clang-format can't help with that, but
clang-tidy may if we agree about it).
Part of #33027.
Diffstat (limited to 'core/string_builder.cpp')
-rw-r--r-- | core/string_builder.cpp | 4 |
1 files changed, 0 insertions, 4 deletions
diff --git a/core/string_builder.cpp b/core/string_builder.cpp index 46c7e1c53f..6b105611f0 100644 --- a/core/string_builder.cpp +++ b/core/string_builder.cpp @@ -33,7 +33,6 @@ #include <string.h> StringBuilder &StringBuilder::append(const String &p_string) { - if (p_string == String()) return *this; @@ -46,7 +45,6 @@ StringBuilder &StringBuilder::append(const String &p_string) { } StringBuilder &StringBuilder::append(const char *p_cstring) { - int32_t len = strlen(p_cstring); c_strings.push_back(p_cstring); @@ -58,7 +56,6 @@ StringBuilder &StringBuilder::append(const char *p_cstring) { } String StringBuilder::as_string() const { - if (string_length == 0) return ""; @@ -80,7 +77,6 @@ String StringBuilder::as_string() const { godot_string_elem++; } else { - const char *s = c_strings[c_string_elem]; for (int32_t j = 0; j < appended_strings[i]; j++) { |