UiUtils: Remove unused getLocale() method.