From 973dc21cf986fb8d754c07616c7f6527d99fbca2 Mon Sep 17 00:00:00 2001 From: Marcin Czachursk Date: Tue, 28 Mar 2023 14:05:03 +0200 Subject: [PATCH] Clean code --- Vernissage.xcodeproj/project.pbxproj | 2 +- Vernissage/EnvironmentObjects/Client+Account.swift | 1 - Vernissage/EnvironmentObjects/Client+Blocks.swift | 1 - Vernissage/EnvironmentObjects/Client+Instance.swift | 1 - Vernissage/EnvironmentObjects/Client+Media.swift | 1 - Vernissage/EnvironmentObjects/Client+Mutes.swift | 1 - Vernissage/EnvironmentObjects/Client+Notifications.swift | 1 - Vernissage/EnvironmentObjects/Client+Places.swift | 1 - Vernissage/EnvironmentObjects/Client+Search.swift | 1 - Vernissage/EnvironmentObjects/Client+Statuses.swift | 1 - Vernissage/EnvironmentObjects/Client+Tags.swift | 1 - Vernissage/EnvironmentObjects/Client+Timeline.swift | 1 - Vernissage/EnvironmentObjects/Client+Trends.swift | 1 - Vernissage/Errors/PurchaseError.swift | 1 - VernissageWidget/VernissageWidgetBundle.swift | 1 - 15 files changed, 1 insertion(+), 15 deletions(-) diff --git a/Vernissage.xcodeproj/project.pbxproj b/Vernissage.xcodeproj/project.pbxproj index 2dc1a0c..93374e1 100644 --- a/Vernissage.xcodeproj/project.pbxproj +++ b/Vernissage.xcodeproj/project.pbxproj @@ -768,9 +768,9 @@ F88C245F295C37B80006098B = { isa = PBXGroup; children = ( - F844F42429D2DC39000DD896 /* LICENSE */, F837269429A221420098D3C4 /* PixelfedKit */, F88ABD9529687D4D004EF61E /* README.md */, + F844F42429D2DC39000DD896 /* LICENSE */, F835081F29BEF88600DE3247 /* Localization */, F864F79C29BB9D2400B13921 /* Models */, F8341F96295C6427009C8EE6 /* CoreData */, diff --git a/Vernissage/EnvironmentObjects/Client+Account.swift b/Vernissage/EnvironmentObjects/Client+Account.swift index 74b6e89..a63ca52 100644 --- a/Vernissage/EnvironmentObjects/Client+Account.swift +++ b/Vernissage/EnvironmentObjects/Client+Account.swift @@ -7,7 +7,6 @@ import Foundation import PixelfedKit -/// Pixelfed 'Account'. extension Client { public class Accounts: BaseClient { diff --git a/Vernissage/EnvironmentObjects/Client+Blocks.swift b/Vernissage/EnvironmentObjects/Client+Blocks.swift index 60fa604..035fc26 100644 --- a/Vernissage/EnvironmentObjects/Client+Blocks.swift +++ b/Vernissage/EnvironmentObjects/Client+Blocks.swift @@ -7,7 +7,6 @@ import Foundation import PixelfedKit -/// Pixelfed 'Trends'. extension Client { public class Blocks: BaseClient { public func blocks(maxId: String? = nil, diff --git a/Vernissage/EnvironmentObjects/Client+Instance.swift b/Vernissage/EnvironmentObjects/Client+Instance.swift index a56d6e7..5ea716c 100644 --- a/Vernissage/EnvironmentObjects/Client+Instance.swift +++ b/Vernissage/EnvironmentObjects/Client+Instance.swift @@ -7,7 +7,6 @@ import Foundation import PixelfedKit -/// Pixelfed 'Search'. extension Client { public class Instances { func instances(instanceUrls: [String]) async -> [Instance] { diff --git a/Vernissage/EnvironmentObjects/Client+Media.swift b/Vernissage/EnvironmentObjects/Client+Media.swift index c7441df..0c532d9 100644 --- a/Vernissage/EnvironmentObjects/Client+Media.swift +++ b/Vernissage/EnvironmentObjects/Client+Media.swift @@ -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? { diff --git a/Vernissage/EnvironmentObjects/Client+Mutes.swift b/Vernissage/EnvironmentObjects/Client+Mutes.swift index 7b50588..f1173c9 100644 --- a/Vernissage/EnvironmentObjects/Client+Mutes.swift +++ b/Vernissage/EnvironmentObjects/Client+Mutes.swift @@ -7,7 +7,6 @@ import Foundation import PixelfedKit -/// Pixelfed 'Trends'. extension Client { public class Mutes: BaseClient { public func mutes(maxId: String? = nil, diff --git a/Vernissage/EnvironmentObjects/Client+Notifications.swift b/Vernissage/EnvironmentObjects/Client+Notifications.swift index 5b3a6f3..63edc91 100644 --- a/Vernissage/EnvironmentObjects/Client+Notifications.swift +++ b/Vernissage/EnvironmentObjects/Client+Notifications.swift @@ -7,7 +7,6 @@ import Foundation import PixelfedKit -/// Pixelfed 'Notifications'. extension Client { public class Notifications: BaseClient { public func notifications(maxId: MaxId? = nil, diff --git a/Vernissage/EnvironmentObjects/Client+Places.swift b/Vernissage/EnvironmentObjects/Client+Places.swift index 4a4c3bc..84e6410 100644 --- a/Vernissage/EnvironmentObjects/Client+Places.swift +++ b/Vernissage/EnvironmentObjects/Client+Places.swift @@ -7,7 +7,6 @@ import Foundation import PixelfedKit -/// Pixelfed 'Places'. extension Client { public class Places: BaseClient { public func search(query: String) async throws -> [Place] { diff --git a/Vernissage/EnvironmentObjects/Client+Search.swift b/Vernissage/EnvironmentObjects/Client+Search.swift index a568cff..3e92654 100644 --- a/Vernissage/EnvironmentObjects/Client+Search.swift +++ b/Vernissage/EnvironmentObjects/Client+Search.swift @@ -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? { diff --git a/Vernissage/EnvironmentObjects/Client+Statuses.swift b/Vernissage/EnvironmentObjects/Client+Statuses.swift index c3cc1b2..e2fd984 100644 --- a/Vernissage/EnvironmentObjects/Client+Statuses.swift +++ b/Vernissage/EnvironmentObjects/Client+Statuses.swift @@ -7,7 +7,6 @@ import Foundation import PixelfedKit -/// Pixelfed 'Statuses'. extension Client { public class Statuses: BaseClient { diff --git a/Vernissage/EnvironmentObjects/Client+Tags.swift b/Vernissage/EnvironmentObjects/Client+Tags.swift index 2e1e7ae..5f9d931 100644 --- a/Vernissage/EnvironmentObjects/Client+Tags.swift +++ b/Vernissage/EnvironmentObjects/Client+Tags.swift @@ -7,7 +7,6 @@ import Foundation import PixelfedKit -/// Pixelfed 'Tags'. extension Client { public class Tags: BaseClient { public func get(tag: String) async throws -> Tag? { diff --git a/Vernissage/EnvironmentObjects/Client+Timeline.swift b/Vernissage/EnvironmentObjects/Client+Timeline.swift index 604339a..e238f80 100644 --- a/Vernissage/EnvironmentObjects/Client+Timeline.swift +++ b/Vernissage/EnvironmentObjects/Client+Timeline.swift @@ -7,7 +7,6 @@ import Foundation import PixelfedKit -/// Pixelfed 'Timeline'. extension Client { public class PublicTimeline: BaseClient { public func getStatuses(local: Bool? = nil, diff --git a/Vernissage/EnvironmentObjects/Client+Trends.swift b/Vernissage/EnvironmentObjects/Client+Trends.swift index ac85373..a38defd 100644 --- a/Vernissage/EnvironmentObjects/Client+Trends.swift +++ b/Vernissage/EnvironmentObjects/Client+Trends.swift @@ -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] { diff --git a/Vernissage/Errors/PurchaseError.swift b/Vernissage/Errors/PurchaseError.swift index 3059098..d3c7df0 100644 --- a/Vernissage/Errors/PurchaseError.swift +++ b/Vernissage/Errors/PurchaseError.swift @@ -3,7 +3,6 @@ // Copyright © 2023 Marcin Czachurski and the repository contributors. // Licensed under the Apache License 2.0. // - import Foundation diff --git a/VernissageWidget/VernissageWidgetBundle.swift b/VernissageWidget/VernissageWidgetBundle.swift index 0d7330f..0e9be9c 100644 --- a/VernissageWidget/VernissageWidgetBundle.swift +++ b/VernissageWidget/VernissageWidgetBundle.swift @@ -3,7 +3,6 @@ // Copyright © 2023 Marcin Czachurski and the repository contributors. // Licensed under the Apache License 2.0. // - import WidgetKit import SwiftUI