Skip to content

Commit ca76092

Browse files
author
Mohammed Rokon Uddin
committed
chore: remove commented codes
1 parent b69a454 commit ca76092

File tree

2 files changed

+0
-46
lines changed

2 files changed

+0
-46
lines changed

{{cookiecutter.app_name}}/Common/Sources/Common/BaseAction.swift

Lines changed: 0 additions & 22 deletions
This file was deleted.

{{cookiecutter.app_name}}/NetworkPlatform/Sources/NetworkPlatform/Network/NetworkingType.swift

Lines changed: 0 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -57,30 +57,6 @@ extension NetworkingType {
5757
}
5858
}
5959
}
60-
61-
// func requestObject<Element: Codable>(_ target: T, type: Element.Type) -> AnyPublisher<Element, NetworkingError> {
62-
// return provider.request(target)
63-
// .filterSuccessfulStatusCodes()
64-
// .map(Element.self)
65-
// .mapError { NetworkingError.error($0.localizedDescription) }
66-
// // TODO: fetch from cache
67-
// .tryCatch { _ in self.coreDataManager.localRandom() }
68-
// .mapError { NetworkingError.error($0.localizedDescription) }
69-
// .eraseToAnyPublisher()
70-
// }
71-
72-
func requestArray<Element: Codable>(_ target: T, type _: Element.Type)
73-
-> AnyPublisher<[Element], NetworkingError>
74-
{
75-
provider.request(target)
76-
.filterSuccessfulStatusCodes()
77-
.map([Element].self)
78-
.mapError { NetworkingError.error($0.localizedDescription) }
79-
// TODO: fetch from cache
80-
// .tryCatch { _ in self.coreDataManager.localRandom() }
81-
.mapError { NetworkingError.error($0.localizedDescription) }
82-
.eraseToAnyPublisher()
83-
}
8460
}
8561

8662
// MARK: - Provider support

0 commit comments

Comments
 (0)