Skip to content

Commit

Permalink
Code cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
weiran committed Apr 30, 2016
1 parent 405c737 commit a6f201d
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 5 deletions.
1 change: 0 additions & 1 deletion Client/Post List/PostCell.swift
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@ import UIKit

class PostCell : UITableViewCell {
@IBOutlet weak var postTitleView: PostTitleView!
var backgroundLayer: CAGradientLayer?

override func setSelected(selected: Bool, animated: Bool) {
super.setSelected(selected, animated: animated)
Expand Down
3 changes: 1 addition & 2 deletions Client/Post/CommentsViewController.swift
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ class CommentsViewController : UIViewController, UITableViewDelegate, UITableVie
}
}

var commentsController = CommentsController()
let commentsController = CommentsController()

@IBOutlet var tableView: UITableView!

Expand All @@ -33,7 +33,6 @@ class CommentsViewController : UIViewController, UITableViewDelegate, UITableVie
tableView.emptyDataSetSource = self;
tableView.emptyDataSetDelegate = self;

commentsController = CommentsController()
loadComments()
}

Expand Down
4 changes: 2 additions & 2 deletions Models/CommentsController.swift
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,8 @@ class CommentsController {
}
}

init() {
comments = [CommentModel]()
convenience init() {
self.init(source: [CommentModel]())
}

init(source: [CommentModel]) {
Expand Down

0 comments on commit a6f201d

Please sign in to comment.