Chromium Code Reviews| Index: ios/chrome/browser/ui/omnibox/omnibox_popup_material_row.mm |
| diff --git a/ios/chrome/browser/ui/omnibox/omnibox_popup_material_row.mm b/ios/chrome/browser/ui/omnibox/omnibox_popup_material_row.mm |
| index 9d066dcdb6b7a4d15c4a58e993a3f359b2d272b9..3196ae46d7e506a5e86867ed79bd9de53bb63bde 100644 |
| --- a/ios/chrome/browser/ui/omnibox/omnibox_popup_material_row.mm |
| +++ b/ios/chrome/browser/ui/omnibox/omnibox_popup_material_row.mm |
| @@ -35,7 +35,6 @@ const CGFloat kAppendButtonSize = 48.0; |
| @synthesize textTruncatingLabel = _textTruncatingLabel; |
| @synthesize detailTruncatingLabel = _detailTruncatingLabel; |
| @synthesize appendButton = _appendButton; |
| -@synthesize physicalWebButton = _physicalWebButton; |
| @synthesize answerImageView = _answerImageView; |
| @synthesize imageView = _imageView; |
| @synthesize rowHeight = _rowHeight; |
| @@ -74,11 +73,6 @@ const CGFloat kAppendButtonSize = 48.0; |
| // The current implementation is from before using a UITableViewCell. |
| [self addSubview:_appendButton]; |
| - _physicalWebButton = [[UIButton buttonWithType:UIButtonTypeCustom] retain]; |
| - [_physicalWebButton setContentMode:UIViewContentModeRight]; |
| - [self updatePhysicalWebImage]; |
| - [self addSubview:_physicalWebButton]; |
| - |
| // Leading icon is only displayed on iPad. |
| if (IsIPadIdiom()) { |
| _imageView = [[UIImageView alloc] initWithFrame:CGRectZero]; |
| @@ -117,7 +111,6 @@ const CGFloat kAppendButtonSize = 48.0; |
| CGRectGetWidth(self.bounds), floor((_rowHeight - kAppendButtonSize) / 2), |
| kAppendButtonSize, kAppendButtonSize); |
| _appendButton.frame = LayoutRectGetRect(trailingAccessoryLayout); |
| - _physicalWebButton.frame = LayoutRectGetRect(trailingAccessoryLayout); |
| } |
| - (void)updateLeadingImage:(int)imageID { |
| @@ -166,16 +159,6 @@ const CGFloat kAppendButtonSize = 48.0; |
| forState:UIControlStateHighlighted]; |
| } |
| -- (void)updatePhysicalWebImage { |
| - UIImage* physicalWebImage = NativeImage(IDR_IOS_OMNIBOX_PHYSICAL_WEB); |
|
rohitrao (ping after 24h)
2017/02/03 21:11:10
Are these two images used anywhere else? Can they
mattreynolds
2017/02/03 22:41:45
They're unused, I'll remove them.
|
| - [_physicalWebButton setImage:physicalWebImage forState:UIControlStateNormal]; |
| - |
| - UIImage* physicalWebImageSelected = |
| - NativeImage(IDR_IOS_OMNIBOX_PHYSICAL_WEB_HIGHLIGHTED); |
| - [_physicalWebButton setImage:physicalWebImageSelected |
| - forState:UIControlStateHighlighted]; |
| -} |
| - |
| - (NSString*)accessibilityLabel { |
| return _textTruncatingLabel.attributedText.string; |
| } |