mirror of
https://git.huckle.dev/Huckles-Minecraft-Archive/4jcraft.git
synced 2026-05-30 23:07:14 +00:00
cleanup: flatten dead branches in common app and ui code
This commit is contained in:
@@ -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; }
|
||||
|
||||
Reference in New Issue
Block a user