Clean code

This commit is contained in:
Marcin Czachursk 2023-03-28 14:05:03 +02:00
parent 38f202ed25
commit 973dc21cf9
15 changed files with 1 additions and 15 deletions

View File

@ -768,9 +768,9 @@
F88C245F295C37B80006098B = {
isa = PBXGroup;
children = (
F844F42429D2DC39000DD896 /* LICENSE */,
F837269429A221420098D3C4 /* PixelfedKit */,
F88ABD9529687D4D004EF61E /* README.md */,
F844F42429D2DC39000DD896 /* LICENSE */,
F835081F29BEF88600DE3247 /* Localization */,
F864F79C29BB9D2400B13921 /* Models */,
F8341F96295C6427009C8EE6 /* CoreData */,

View File

@ -7,7 +7,6 @@
import Foundation
import PixelfedKit
/// Pixelfed 'Account'.
extension Client {
public class Accounts: BaseClient {

View File

@ -7,7 +7,6 @@
import Foundation
import PixelfedKit
/// Pixelfed 'Trends'.
extension Client {
public class Blocks: BaseClient {
public func blocks(maxId: String? = nil,

View File

@ -7,7 +7,6 @@
import Foundation
import PixelfedKit
/// Pixelfed 'Search'.
extension Client {
public class Instances {
func instances(instanceUrls: [String]) async -> [Instance] {

View File

@ -7,7 +7,6 @@
import Foundation
import PixelfedKit
/// Pixelfed 'Statuses'.
extension Client {
public class Media: BaseClient {
func upload(data: Data, fileName: String, mimeType: String) async throws -> UploadedAttachment? {

View File

@ -7,7 +7,6 @@
import Foundation
import PixelfedKit
/// Pixelfed 'Trends'.
extension Client {
public class Mutes: BaseClient {
public func mutes(maxId: String? = nil,

View File

@ -7,7 +7,6 @@
import Foundation
import PixelfedKit
/// Pixelfed 'Notifications'.
extension Client {
public class Notifications: BaseClient {
public func notifications(maxId: MaxId? = nil,

View File

@ -7,7 +7,6 @@
import Foundation
import PixelfedKit
/// Pixelfed 'Places'.
extension Client {
public class Places: BaseClient {
public func search(query: String) async throws -> [Place] {

View File

@ -7,7 +7,6 @@
import Foundation
import PixelfedKit
/// Pixelfed 'Search'.
extension Client {
public class Search: BaseClient {
public func search(query: String, resultsType: Pixelfed.Search.ResultsType, limit: Int = 20, page: Int = 1) async throws -> SearchResults? {

View File

@ -7,7 +7,6 @@
import Foundation
import PixelfedKit
/// Pixelfed 'Statuses'.
extension Client {
public class Statuses: BaseClient {

View File

@ -7,7 +7,6 @@
import Foundation
import PixelfedKit
/// Pixelfed 'Tags'.
extension Client {
public class Tags: BaseClient {
public func get(tag: String) async throws -> Tag? {

View File

@ -7,7 +7,6 @@
import Foundation
import PixelfedKit
/// Pixelfed 'Timeline'.
extension Client {
public class PublicTimeline: BaseClient {
public func getStatuses(local: Bool? = nil,

View File

@ -7,7 +7,6 @@
import Foundation
import PixelfedKit
/// Pixelfed 'Trends'.
extension Client {
public class Trends: BaseClient {
public func statuses(range: Pixelfed.Trends.TrendRange) async throws -> [Status] {

View File

@ -4,7 +4,6 @@
// Licensed under the Apache License 2.0.
//
import Foundation
public enum PurchaseError: Error {

View File

@ -4,7 +4,6 @@
// Licensed under the Apache License 2.0.
//
import WidgetKit
import SwiftUI