Skip to content

Commit 8bf4298

Browse files
committed
Remove redundant convert function
1 parent 76a4ce2 commit 8bf4298

File tree

2 files changed

+1
-12
lines changed

2 files changed

+1
-12
lines changed

WooCommerce/Classes/Bookings/BookingFilters/ListSyncable.swift

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import Foundation
22
import Yosemite
33

4-
/// Protocol for configuring a booking list selector with different entity types.
4+
/// Protocol for configuring a list selector with different entity types.
55
/// Provides all necessary configuration for fetching, displaying, and syncing list items.
66
protocol ListSyncable {
77
associatedtype StorageType: ResultsControllerMutableType
@@ -24,11 +24,6 @@ protocol ListSyncable {
2424
/// Creates the action to sync items from remote
2525
func createSyncAction(pageNumber: Int, pageSize: Int, completion: @escaping (Result<Bool, Error>) -> Void) -> Action
2626

27-
// MARK: - Model Conversion
28-
29-
/// Converts storage object to model object
30-
func convert(_ storage: StorageType) -> ModelType
31-
3227
// MARK: - Display Configuration
3328

3429
/// Returns the display name for an item

WooCommerce/Classes/Bookings/BookingFilters/TeamMemberListSyncable.swift

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -49,12 +49,6 @@ struct TeamMemberListSyncable: ListSyncable {
4949
)
5050
}
5151

52-
// MARK: - Model Conversion
53-
54-
func convert(_ storage: StorageBookingResource) -> BookingResource {
55-
storage.toReadOnly()
56-
}
57-
5852
// MARK: - Display Configuration
5953

6054
func displayName(for item: BookingResource) -> String {

0 commit comments

Comments
 (0)