Skip to content

Commit 7504cc4

Browse files
committed
fix: 'public' modifier is redundant for instance method declared in a public extension 경고 해결
1 parent f37fd32 commit 7504cc4

8 files changed

Lines changed: 15 additions & 15 deletions

File tree

Application/DevLogData/Sources/Mapper/PushNotificationMapping.swift

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
import DevLogDomain
99

1010
public extension PushNotificationResponse {
11-
public func toDomain() throws -> PushNotification {
11+
func toDomain() throws -> PushNotification {
1212
let todoCategory: TodoCategory
1313

1414
switch self.todoCategory {
@@ -33,14 +33,14 @@ public extension PushNotificationResponse {
3333
}
3434

3535
public extension PushNotificationCursorDTO {
36-
public func toDomain() -> PushNotificationCursor {
36+
func toDomain() -> PushNotificationCursor {
3737
PushNotificationCursor(
3838
receivedAt: self.receivedAt,
3939
documentID: self.documentID
4040
)
4141
}
4242

43-
public static func fromDomain(_ cursor: PushNotificationCursor) -> Self {
43+
static func fromDomain(_ cursor: PushNotificationCursor) -> Self {
4444
PushNotificationCursorDTO(
4545
receivedAt: cursor.receivedAt,
4646
documentID: cursor.documentID
@@ -49,7 +49,7 @@ public extension PushNotificationCursorDTO {
4949
}
5050

5151
public extension PushNotificationPageResponse {
52-
public func toDomain() throws -> PushNotificationPage {
52+
func toDomain() throws -> PushNotificationPage {
5353
let items = try self.items.map { try $0.toDomain() }
5454
let nextCursor = self.nextCursor?.toDomain()
5555
return PushNotificationPage(items: items, nextCursor: nextCursor)

Application/DevLogData/Sources/Mapper/TodoMapping.swift

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
import DevLogDomain
99

1010
public extension TodoRequest {
11-
public static func fromDomain(_ entity: Todo) -> Self {
11+
static func fromDomain(_ entity: Todo) -> Self {
1212
TodoRequest(
1313
id: entity.id,
1414
isPinned: entity.isPinned,
@@ -28,7 +28,7 @@ public extension TodoRequest {
2828
}
2929

3030
public extension TodoResponse {
31-
public func toDomain() throws -> Todo {
31+
func toDomain() throws -> Todo {
3232
let todoCategory: TodoCategory
3333

3434
switch category {
@@ -58,15 +58,15 @@ public extension TodoResponse {
5858
}
5959

6060
public extension TodoCursorDTO {
61-
public func toDomain() -> TodoCursor {
61+
func toDomain() -> TodoCursor {
6262
TodoCursor(
6363
primarySortDate: primarySortDate,
6464
secondarySortDate: secondarySortDate,
6565
documentID: documentID
6666
)
6767
}
6868

69-
public static func fromDomain(_ cursor: TodoCursor) -> Self {
69+
static func fromDomain(_ cursor: TodoCursor) -> Self {
7070
TodoCursorDTO(
7171
primarySortDate: cursor.primarySortDate,
7272
secondarySortDate: cursor.secondarySortDate,
@@ -76,7 +76,7 @@ public extension TodoCursorDTO {
7676
}
7777

7878
public extension TodoPageResponse {
79-
public func toDomain() throws -> TodoPage {
79+
func toDomain() throws -> TodoPage {
8080
let items = try items.map { try $0.toDomain() }
8181
let cursor = nextCursor?.toDomain()
8282
return TodoPage(items: items, nextCursor: cursor)

Application/DevLogData/Sources/Mapper/UserProfileMapping.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
import DevLogDomain
99

1010
public extension UserProfileResponse {
11-
public func toDomain() -> UserProfile {
11+
func toDomain() -> UserProfile {
1212
UserProfile(
1313
name: self.name,
1414
email: self.email,

Application/DevLogData/Sources/Mapper/WebPageMapping.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ import Foundation
99
import DevLogDomain
1010

1111
public extension WebPageResponse {
12-
public func toDomain() throws -> WebPage {
12+
func toDomain() throws -> WebPage {
1313
guard let url = URL(string: url) else {
1414
throw DataError.invalidData("WebPageResponse.url is invalid: \(url)")
1515
}

Application/DevLogDomain/Sources/Entity/PushNotificationQuery.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ public extension PushNotificationQuery.TimeFilter {
6767
}
6868
}
6969

70-
public var thresholdDate: Date? {
70+
var thresholdDate: Date? {
7171
switch self {
7272
case .none:
7373
return nil

Application/DevLogDomain/Sources/Extension/Array.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ extension Array: @retroactive RawRepresentable where Element: Codable {
3030
}
3131

3232
public extension Array {
33-
public func chunked(maxCount: Int) -> [[Element]] {
33+
func chunked(maxCount: Int) -> [[Element]] {
3434
guard 0 < maxCount else { return [] }
3535

3636
var chunks = [[Element]]()

Application/DevLogDomain/Sources/Extension/String.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ import Foundation
1010
public extension String {
1111
private static let todoReferencePattern = #"^([ \t]*)-[ \t]+refs[ \t]+#(\d+)[ \t]*$"#
1212

13-
public var todoReferenceNumbers: [Int] {
13+
var todoReferenceNumbers: [Int] {
1414
guard
1515
let expression = try? NSRegularExpression(
1616
pattern: Self.todoReferencePattern,

Widget/DevLogWidgetCore/Sources/Common/Calendar.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
import Foundation
99

1010
public extension Calendar {
11-
public func startOfQuarter(for date: Date) -> Date {
11+
func startOfQuarter(for date: Date) -> Date {
1212
let month = component(.month, from: date)
1313
let startMonth = ((month - 1) / 3) * 3 + 1
1414
var components = dateComponents([.year], from: date)

0 commit comments

Comments
 (0)