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

Unified Diff: samples/github/ios/github/CommitListPresenter.mm

Issue 2035023003: Remove service-compiler related code. (Closed) Base URL: git@github.com:dartino/sdk.git@master
Patch Set: Created 4 years, 6 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
Index: samples/github/ios/github/CommitListPresenter.mm
diff --git a/samples/github/ios/github/CommitListPresenter.mm b/samples/github/ios/github/CommitListPresenter.mm
deleted file mode 100644
index 486587a53c7553af88efd2f0279e08bc806097c0..0000000000000000000000000000000000000000
--- a/samples/github/ios/github/CommitListPresenter.mm
+++ /dev/null
@@ -1,51 +0,0 @@
-// Copyright (c) 2015, the Dartino project authors. Please see the AUTHORS file
-// for details. All rights reserved. Use of this source code is governed by a
-// BSD-style license that can be found in the LICENSE.md file.
-
-#import "CommitListPresenter.h"
-
-#import "CommitCellPresenter.h"
-#import "ImmiSamples/SlidingWindowPresenter.h"
-
-@interface CommitListPresenter ()
-
-@property UINavigationController* navigationController;
-@property SlidingWindowPresenter* presenter;
-@property id<CellPresenter> cellPresenter;
-
-@end
-
-@implementation CommitListPresenter
-
-- (instancetype)initWithCoder:(NSCoder*)aDecoder {
- self = [super initWithCoder:aDecoder];
- self.navigationController =
- [[UINavigationController alloc] initWithRootViewController:self];
- return self;
-}
-
-- (UIViewController*)viewController {
- return self.navigationController;
-}
-
-- (void)presentSlidingWindow:(SlidingWindowNode*)node {
- // TODO(zerny): this setup should be done on allocation but can't because
- // SlidingWindowPresenter depends on the table view. Remove the dependency in
- // SlidingWindowPresenter and move allocation of the sub presenters to init.
- if (self.presenter == nil) {
- self.cellPresenter = [[CommitCellPresenter alloc] init];
- self.presenter =
- [[SlidingWindowPresenter alloc]
- initWithCellPresenter:self.cellPresenter
- tableView:self.tableView];
- self.tableView.dataSource = self.presenter;
- self.tableView.delegate = self.presenter;
- }
- [self.presenter presentSlidingWindow:node];
-}
-
-- (void)patchSlidingWindow:(SlidingWindowPatch*)patch {
- [self.presenter patchSlidingWindow:patch];
-}
-
-@end

Powered by Google App Engine
This is Rietveld 408576698