summaryrefslogtreecommitdiffstats
path: root/ios
diff options
context:
space:
mode:
authorjbbegue <jbbegue@chromium.org>2015-09-09 02:25:56 -0700
committerCommit bot <commit-bot@chromium.org>2015-09-09 09:26:32 +0000
commit4f02f4322d681bf925323086c1b5c918bd04f03e (patch)
treed47a2be16cac95e2070d948b519b9db3ef0f3209 /ios
parent19fb587ecf290db2b6f3f0db2b59862f6766a4a2 (diff)
downloadchromium_src-4f02f4322d681bf925323086c1b5c918bd04f03e.zip
chromium_src-4f02f4322d681bf925323086c1b5c918bd04f03e.tar.gz
chromium_src-4f02f4322d681bf925323086c1b5c918bd04f03e.tar.bz2
Removed deprecated function IsRTLUILayout().
Review URL: https://codereview.chromium.org/1320353003 Cr-Commit-Position: refs/heads/master@{#347890}
Diffstat (limited to 'ios')
-rw-r--r--ios/chrome/browser/ui/rtl_geometry.h9
-rw-r--r--ios/chrome/browser/ui/rtl_geometry.mm20
2 files changed, 0 insertions, 29 deletions
diff --git a/ios/chrome/browser/ui/rtl_geometry.h b/ios/chrome/browser/ui/rtl_geometry.h
index 16966f1..90ac965 100644
--- a/ios/chrome/browser/ui/rtl_geometry.h
+++ b/ios/chrome/browser/ui/rtl_geometry.h
@@ -167,13 +167,4 @@ CGFloat UIEdgeInsetsGetTrailing(UIEdgeInsets insets);
// smaller sections of views should be determined case by case.
NSLayoutFormatOptions LayoutOptionForRTLSupport();
-// Deprecated -- use UseRTLLayout() instead.
-// Whether the UI is configured for right to left layout.
-// The implementation will use the local in order to get the UI layout direction
-// for version of iOS under 9.
-// TODO(jbbegue): Use base::i18n::IsRTL() instead when it will support RTL
-// pseudo language. Remove that method once base::i18n::IsRTL() is fixed.
-// crbug/514625.
-bool IsRTLUILayout();
-
#endif // RTL_GEOMETRY_H_
diff --git a/ios/chrome/browser/ui/rtl_geometry.mm b/ios/chrome/browser/ui/rtl_geometry.mm
index c5b7d08..18aea85 100644
--- a/ios/chrome/browser/ui/rtl_geometry.mm
+++ b/ios/chrome/browser/ui/rtl_geometry.mm
@@ -215,23 +215,3 @@ NSLayoutFormatOptions LayoutOptionForRTLSupport() {
}
return NSLayoutFormatDirectionLeftToRight;
}
-
-#pragma mark - deprecated functions
-
-bool IsRTLUILayout() {
- if (base::ios::IsRunningOnIOS9OrLater()) {
-#if __IPHONE_9_0
- // Calling this method is better than using the locale on iOS9 since it will
- // work with the right to left pseudolanguage.
- return [UIView userInterfaceLayoutDirectionForSemanticContentAttribute:
- UISemanticContentAttributeUnspecified] ==
- UIUserInterfaceLayoutDirectionRightToLeft;
-#endif
- }
- // Using NSLocale instead of base::i18n::IsRTL() in order to take into account
- // right to left pseudolanguage correctly (which base::i18n::IsRTL() doesn't).
- return [NSLocale characterDirectionForLanguage:
- [[NSLocale currentLocale]
- objectForKey:NSLocaleLanguageCode]] ==
- NSLocaleLanguageDirectionRightToLeft;
-}