chore: code cleanup
This commit is contained in:
parent
cd112c5102
commit
a5f2bf2334
|
@ -5,8 +5,8 @@
|
|||
// Created by MainasuK Cirno on 2021-3-10.
|
||||
//
|
||||
|
||||
import os.log
|
||||
import UIKit
|
||||
|
||||
final class AvatarStackedImageView: UIImageView { }
|
||||
|
||||
// MARK: - AvatarConfigurableView
|
||||
|
@ -17,9 +17,6 @@ extension AvatarStackedImageView: AvatarConfigurableView {
|
|||
var configurableAvatarButton: UIButton? { nil }
|
||||
}
|
||||
|
||||
import os.log
|
||||
import UIKit
|
||||
|
||||
extension UIControl.State: Hashable { }
|
||||
|
||||
final class AvatarStackContainerButton: UIControl {
|
||||
|
|
|
@ -131,42 +131,3 @@ extension APIService {
|
|||
}
|
||||
|
||||
}
|
||||
|
||||
extension APIService {
|
||||
// func likeList(
|
||||
// limit: Int = onceRequestTootMaxCount,
|
||||
// userID: String,
|
||||
// maxID: String? = nil,
|
||||
// mastodonAuthenticationBox: AuthenticationService.MastodonAuthenticationBox
|
||||
// ) -> AnyPublisher<Mastodon.Response.Content<[Mastodon.Entity.Status]>, Error> {
|
||||
//
|
||||
// let requestMastodonUserID = mastodonAuthenticationBox.userID
|
||||
// let query = Mastodon.API.Favorites.ListQuery(limit: limit, minID: nil, maxID: maxID)
|
||||
// return Mastodon.API.Favorites.favoritedStatus(domain: mastodonAuthenticationBox.domain, session: session, authorization: mastodonAuthenticationBox.userAuthorization, query: query)
|
||||
// .map { response -> AnyPublisher<Mastodon.Response.Content<[Mastodon.Entity.Status]>, Error> in
|
||||
// let log = OSLog.api
|
||||
//
|
||||
// return APIService.Persist.persistTimeline(
|
||||
// managedObjectContext: self.backgroundManagedObjectContext,
|
||||
// domain: mastodonAuthenticationBox.domain,
|
||||
// query: query,
|
||||
// response: response,
|
||||
// persistType: .likeList,
|
||||
// requestMastodonUserID: requestMastodonUserID,
|
||||
// log: log
|
||||
// )
|
||||
// .setFailureType(to: Error.self)
|
||||
// .tryMap { result -> Mastodon.Response.Content<[Mastodon.Entity.Status]> in
|
||||
// switch result {
|
||||
// case .success:
|
||||
// return response
|
||||
// case .failure(let error):
|
||||
// throw error
|
||||
// }
|
||||
// }
|
||||
// .eraseToAnyPublisher()
|
||||
// }
|
||||
// .switchToLatest()
|
||||
// .eraseToAnyPublisher()
|
||||
// }
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue