Skip to content

Commit a5e27de

Browse files
committed
[Chore] #182 - 불필요 코드 제거
1 parent e5e3e7b commit a5e27de

2 files changed

Lines changed: 0 additions & 15 deletions

File tree

Neki-iOS/Features/Archive/Sources/Data/Sources/FileManagerSharedImageRepository.swift

Lines changed: 0 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -29,20 +29,6 @@ public struct FileManagerSharedImageRepository {
2929
// MARK: - FileManagerSharedImageRepository + SharedImageRepository
3030

3131
extension FileManagerSharedImageRepository: SharedImageRepository {
32-
public func fetchSharedImages(appGroupID: String) async throws -> [ImageUploadEntity] {
33-
let fileURLs = try sharedImageURLs(for: appGroupID)
34-
35-
return fileURLs.compactMap { url in
36-
do {
37-
let data = try Data(contentsOf: url)
38-
return ImageUploadEntity(data: data, format: data.detectedImageFormat)
39-
} catch {
40-
Logger.data.error("공유된 이미지 읽기 실패: \(error.localizedDescription)")
41-
return nil
42-
}
43-
}
44-
}
45-
4632
public func fetchSharedImageURLs(appGroupID: String) async throws -> [URL] {
4733
return try sharedImageURLs(for: appGroupID)
4834
}

Neki-iOS/Features/Archive/Sources/Domain/Sources/Interfaces/Repositories/SharedImageRepository.swift

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

1010
public protocol SharedImageRepository {
11-
func fetchSharedImages(appGroupID: String) async throws -> [ImageUploadEntity]
1211
func fetchSharedImageURLs(appGroupID: String) async throws -> [URL]
1312
func clearSharedImages(appGroupID: String) async throws
1413
}

0 commit comments

Comments
 (0)