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

Remove empty method.

This method with a stale todo will probably never be implemented. Remove
it to not confuse new people :)

Bug: none
Change-Id: I8f91a021158d7c275e8230a65746e692d780a1ed
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1993461
Commit-Queue: Stepan Khapugin <stkhapugin@chromium.org>
Reviewed-by: default avatarRohit Rao <rohitrao@chromium.org>
Auto-Submit: Stepan Khapugin <stkhapugin@chromium.org>
Cr-Commit-Position: refs/heads/master@{#729815}
parent f9581459
...@@ -146,7 +146,7 @@ class OmniboxViewIOS : public OmniboxView, ...@@ -146,7 +146,7 @@ class OmniboxViewIOS : public OmniboxView,
protected: protected:
int GetOmniboxTextLength() const override; int GetOmniboxTextLength() const override;
void EmphasizeURLComponents() override; void EmphasizeURLComponents() override {}
private: private:
void SetEmphasis(bool emphasize, const gfx::Range& range) override {} void SetEmphasis(bool emphasize, const gfx::Range& range) override {}
......
...@@ -671,19 +671,6 @@ int OmniboxViewIOS::GetOmniboxTextLength() const { ...@@ -671,19 +671,6 @@ int OmniboxViewIOS::GetOmniboxTextLength() const {
return [field_ displayedText].length(); return [field_ displayedText].length();
} }
void OmniboxViewIOS::EmphasizeURLComponents() {
// TODO(rohitrao): Implement this function using code like below. This code
// is being left out for now because it was not present before the OmniboxView
// rewrite.
#if 0
// When editing is in progress, the url text is not colored, so there is
// nothing to emphasize. (Calling SetText() in that situation would also be
// harmful, as it would reset the carat position to the end of the text.)
if (!IsEditingOrEmpty())
SetText(GetText());
#endif
}
#pragma mark - OmniboxPopupViewSuggestionsDelegate #pragma mark - OmniboxPopupViewSuggestionsDelegate
void OmniboxViewIOS::OnSelectedMatchImageChanged( void OmniboxViewIOS::OnSelectedMatchImageChanged(
......
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