Skip to content
This repository has been archived by the owner on Jan 24, 2023. It is now read-only.

Commit

Permalink
removed the method and gave control over staticitems array
Browse files Browse the repository at this point in the history
  • Loading branch information
Prince2k3 committed Sep 8, 2019
1 parent 4740e43 commit aed911b
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions DataSource/Sources/DataSource.swift
Original file line number Diff line number Diff line change
Expand Up @@ -47,12 +47,12 @@ open class DataSourceStaticItem: NSObject {
}

public final class DataSource: NSObject {
var staticItems: [DataSourceStaticItem] = []
var cellIdentifier: String = ""

public weak var delegate: DataSourceDelegate?
public weak var editingStyleDelegate: DataSourceEditingStyleDelegate?

public var staticItems: [DataSourceStaticItem] = []
public var items: [Any] = []
public var numberOfItems: Int?
public var title: String?
Expand Down Expand Up @@ -82,10 +82,6 @@ public final class DataSource: NSObject {
public func item(at indexPath: IndexPath) -> Any? {
return items[indexPath.row]
}

public func addStaticItem(_ item: DataSourceStaticItem) {
staticItems.append(item)
}
}

public final class GroupedDataSource: NSObject {
Expand Down

0 comments on commit aed911b

Please sign in to comment.