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

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

Issue 2742783003: Removed CopyState() from NavigationManager, as it is unused. (Closed)
Patch Set: compile fix Created 3 years, 9 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') | ios/web/navigation/navigation_manager_impl.h » ('j') | 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 31ee7a98385faf7fcd36b110da67c2a2ef252ce8..1bb37874fe17199af3b6370eb673a0b99eac87df 100644
--- a/ios/web/navigation/crw_session_controller.mm
+++ b/ios/web/navigation/crw_session_controller.mm
@@ -274,25 +274,6 @@ - (NSString*)description {
transientItemDescription];
}
-#pragma mark - NSCopying
-
-- (id)copyWithZone:(NSZone*)zone {
- CRWSessionController* copy = [[[self class] alloc] init];
- copy->_openedByDOM = _openedByDOM;
- copy->_currentNavigationIndex = _currentNavigationIndex;
- copy->_previousNavigationIndex = _previousNavigationIndex;
- copy->_pendingItemIndex = _pendingItemIndex;
- copy->_sessionCertificatePolicyManager =
- [_sessionCertificatePolicyManager copy];
- web::ScopedNavigationItemImplList itemCopies(self.items.size());
- for (size_t index = 0; index < self.items.size(); ++index) {
- itemCopies[index] =
- base::MakeUnique<web::NavigationItemImpl>(*self.items[index]);
- }
- std::swap(copy->_items, itemCopies);
- return copy;
-}
-
#pragma mark - Public
- (void)setNavigationManager:(web::NavigationManagerImpl*)navigationManager {
« no previous file with comments | « ios/web/navigation/crw_session_controller.h ('k') | ios/web/navigation/navigation_manager_impl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698