Commit bec1bd2d authored by Stepan Khapugin's avatar Stepan Khapugin Committed by Commit Bot

[iOS] Remove dead code.

Remove code that is never executed.

Change-Id: Ife77329b7a911f2beae96b67c0efac582e54266d
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2115653
Commit-Queue: Stepan Khapugin <stkhapugin@chromium.org>
Commit-Queue: Robbie Gibson <rkgibson@google.com>
Auto-Submit: Stepan Khapugin <stkhapugin@chromium.org>
Reviewed-by: default avatarRobbie Gibson <rkgibson@google.com>
Cr-Commit-Position: refs/heads/master@{#752479}
parent f432da4a
......@@ -264,16 +264,6 @@ NSString* const kOmniboxFadeAnimationKey = @"OmniboxFadeAnimation";
} else {
[self setTextAlignment:NSTextAlignmentNatural];
}
return;
// Setting the empty field to Natural seems to let iOS update the cursor
// position when the keyboard language is changed.
if (!self.text.length) {
[self setTextAlignment:NSTextAlignmentNatural];
return;
}
NSTextAlignment alignment = [self bestTextAlignment];
[self setTextAlignment:alignment];
}
- (UIColor*)displayedTextColor {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment