Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(140)

Unified Diff: ios/web/navigation/crw_session_controller.mm

Issue 2643643003: Remove unused and obsolete Tab -currentRedirectedURLs method. (Closed)
Patch Set: Created 3 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « ios/web/navigation/crw_session_controller.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ios/web/navigation/crw_session_controller.mm
diff --git a/ios/web/navigation/crw_session_controller.mm b/ios/web/navigation/crw_session_controller.mm
index 2c7db40a76162a88c382ef833f0370e47e6fb585..8430bea9859c196bb3efa23094135b3c4d383100 100644
--- a/ios/web/navigation/crw_session_controller.mm
+++ b/ios/web/navigation/crw_session_controller.mm
@@ -653,36 +653,6 @@ NSString* const kWindowNameKey = @"windowName";
return entries;
}
-- (std::vector<GURL>)currentRedirectedUrls {
- std::vector<GURL> results;
- if (_pendingEntry) {
- web::NavigationItem* item = [_pendingEntry navigationItem];
- results.push_back(item->GetURL());
-
- if (!ui::PageTransitionIsRedirect(item->GetTransitionType()))
- return results;
- }
-
- if (![_entries count])
- return results;
-
- NSInteger index = _currentNavigationIndex;
- // Add urls in the redirected entries.
- while (index >= 0) {
- web::NavigationItem* item = [[_entries objectAtIndex:index] navigationItem];
- if (!ui::PageTransitionIsRedirect(item->GetTransitionType()))
- break;
- results.push_back(item->GetURL());
- --index;
- }
- // Add the last non-redirected entry.
- if (index >= 0) {
- web::NavigationItem* item = [[_entries objectAtIndex:index] navigationItem];
- results.push_back(item->GetURL());
- }
- return results;
-}
-
- (BOOL)isSameDocumentNavigationBetweenEntry:(CRWSessionEntry*)firstEntry
andEntry:(CRWSessionEntry*)secondEntry {
if (!firstEntry || !secondEntry || firstEntry == secondEntry)
« no previous file with comments | « ios/web/navigation/crw_session_controller.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698