Skip to content
This repository has been archived by the owner on Feb 17, 2021. It is now read-only.

* refactoring #183

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 0 additions & 2 deletions LayoutKitSampleApp/Benchmarks/DataBinder.swift
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,6 @@
// software distributed under the License is distributed on an "AS IS" BASIS,
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.

import Foundation

protocol DataBinder {
associatedtype DataType
func setData(_ data: DataType)
Expand Down
2 changes: 0 additions & 2 deletions LayoutKitTests/IndexSetExtension.swift
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,6 @@
// software distributed under the License is distributed on an "AS IS" BASIS,
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.

import Foundation

extension IndexSet {
/// Returns the only index in the set.
/// It returns nil if there is not exactly one index in the set.
Expand Down
1 change: 0 additions & 1 deletion Sources/Internal/CGSizeExtension.swift
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.

import CoreGraphics
import Foundation

#if os(OSX)
public typealias EdgeInsets = NSEdgeInsets
Expand Down
16 changes: 8 additions & 8 deletions Sources/Views/BatchUpdates.swift
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,6 @@
// software distributed under the License is distributed on an "AS IS" BASIS,
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.

import Foundation


/**
A set of updates to apply to a `ReloadableView`.
Expand Down Expand Up @@ -40,10 +38,10 @@ public struct ItemMove: Equatable {
self.from = from
self.to = to
}
}

public func ==(lhs: ItemMove, rhs: ItemMove) -> Bool {
return lhs.from == rhs.from && lhs.to == rhs.to
public static func ==(lhs: ItemMove, rhs: ItemMove) -> Bool {
return lhs.from == rhs.from && lhs.to == rhs.to
}
}

/// Instruction to move a section from one index to another.
Expand All @@ -55,8 +53,10 @@ public struct SectionMove: Equatable {
self.from = from
self.to = to
}
}

public func ==(lhs: SectionMove, rhs: SectionMove) -> Bool {
return lhs.from == rhs.from && lhs.to == rhs.to
public static func ==(lhs: SectionMove, rhs: SectionMove) -> Bool {
return lhs.from == rhs.from && lhs.to == rhs.to
}
}


2 changes: 0 additions & 2 deletions Sources/Views/ReloadableViewUpdateManager.swift
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,6 @@
// software distributed under the License is distributed on an "AS IS" BASIS,
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.

import Foundation

/// Delegate for a `ReloadableViewUpdateManager`.
protocol ReloadableViewUpdateManagerDelegate: class {
var reloadableView: ReloadableView? { get }
Expand Down