diff --git a/indra/llui/lllineeditor.cpp b/indra/llui/lllineeditor.cpp
index 27cb4acbf7..63482df996 100644
--- a/indra/llui/lllineeditor.cpp
+++ b/indra/llui/lllineeditor.cpp
@@ -57,12 +57,6 @@
// Imported globals
//
-// IME - International input compositing, i.e. for Japanese / Chinese text input
-#if LL_SDL2
-extern LLControlGroup gSavedSettings;
-#endif
-//
-
//
// Constants
//
@@ -2172,7 +2166,7 @@ void LLLineEditor::draw()
ime_pos.mY = (S32) (ime_pos.mY * LLUI::getScaleFactor().mV[VY]);
// IME - International input compositing, i.e. for Japanese / Chinese text input
#if LL_SDL2
- static LLCachedControl sdl2_ime_default_vertical_offset(*LLControlGroup::getInstance("Global"), "SDL2IMEDefaultVerticalOffset");
+ static LLUICachedControl sdl2_ime_default_vertical_offset("SDL2IMEDefaultVerticalOffset");
ime_pos.mY += sdl2_ime_default_vertical_offset;
#endif
//
diff --git a/indra/llui/lltextbase.cpp b/indra/llui/lltextbase.cpp
index 7689b98765..81414566b4 100644
--- a/indra/llui/lltextbase.cpp
+++ b/indra/llui/lltextbase.cpp
@@ -50,12 +50,6 @@
#include "fsregistrarutils.h"
-// IME - International input compositing, i.e. for Japanese / Chinese text input
-#if LL_SDL2
-extern LLControlGroup gSavedSettings;
-#endif
-//
-
const F32 CURSOR_FLASH_DELAY = 1.0f; // in seconds
const S32 CURSOR_THICKNESS = 2;
const F32 TRIPLE_CLICK_INTERVAL = 0.3f; // delay between double and triple click.
@@ -653,7 +647,7 @@ void LLTextBase::drawCursor()
ime_pos.mY = (S32) (ime_pos.mY * LLUI::getScaleFactor().mV[VY]);
// IME - International input compositing, i.e. for Japanese / Chinese text input
#if LL_SDL2
- static LLCachedControl sdl2_ime_default_vertical_offset(*LLControlGroup::getInstance("Global"), "SDL2IMEDefaultVerticalOffset");
+ static LLUICachedControl sdl2_ime_default_vertical_offset("SDL2IMEDefaultVerticalOffset");
ime_pos.mY += sdl2_ime_default_vertical_offset;
#endif
//