Commit f78f3960 authored by mrefaat's avatar mrefaat Committed by Commit Bot

[IOSTabRefactoring] Remove goToItem from tab

Not used.

Bug: 898382
Change-Id: I796eac237414917a12944a2ce67b3963f035dfb0
Reviewed-on: https://chromium-review.googlesource.com/c/1297463Reviewed-by: default avatarEugene But <eugenebut@chromium.org>
Commit-Queue: Mohammad Refaat <mrefaat@chromium.org>
Cr-Commit-Position: refs/heads/master@{#602422}
parent 9e5d22bc
......@@ -133,9 +133,6 @@ extern NSString* const kProxyPassthroughHeaderValue;
// be populated. Can return null.
- (web::NavigationManager*)navigationManager;
// Navigate forwards or backwards to |item|.
- (void)goToItem:(const web::NavigationItem*)item;
// Navigates forwards or backwards.
// TODO(crbug.com/661664): These are passthroughs to the Tab's WebState's
// NavigationManager. Convert all callers and remove these methods.
......
......@@ -331,13 +331,6 @@ NSString* const kTabUrlKey = @"url";
return self.webState ? self.webState->GetNavigationManager() : nullptr;
}
- (void)goToItem:(const web::NavigationItem*)item {
DCHECK(item);
int index = self.navigationManager->GetIndexOfItem(item);
DCHECK_NE(index, -1);
self.navigationManager->GoToIndex(index);
}
- (void)goBack {
if (self.navigationManager) {
DCHECK(self.navigationManager->CanGoBack());
......
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