cleanup: flatten dead branches in common app and ui code

This commit is contained in:
MatthewBeshay
2026-03-26 20:18:29 +11:00
parent 1fecbf297a
commit f19563bbd7
154 changed files with 297 additions and 15903 deletions

View File

@@ -82,11 +82,7 @@ int UIString::s_currentLocale = -1;
UIString::UIString() { m_core = std::shared_ptr<UIStringCore>(); }
UIString::UIString(int ids) {
#if 0
StringBuilder builder = StringBuilder(new IdsStringBuilder(ids));
#else
StringBuilder builder = [ids]() { return app.GetString(ids); };
#endif
UIStringCore* core = new UIStringCore(builder);
m_core = std::shared_ptr<UIStringCore>(core);
}
@@ -114,9 +110,7 @@ UIString::UIString(const wchar_t* constant) {
}
UIString::~UIString() {
#if 1
m_core = nullptr;
#endif
}
bool UIString::empty() { return m_core.get() == NULL; }