From 001455e5c5ae3c075a08d9e1597f8a9976c0def6 Mon Sep 17 00:00:00 2001 From: Caio Zullo Date: Wed, 27 Mar 2024 11:13:55 +0200 Subject: [PATCH] Delete NullStore --- .../EssentialApp.xcodeproj/project.pbxproj | 4 ---- EssentialApp/EssentialApp/NullStore.swift | 22 ------------------- 2 files changed, 26 deletions(-) delete mode 100644 EssentialApp/EssentialApp/NullStore.swift diff --git a/EssentialApp/EssentialApp.xcodeproj/project.pbxproj b/EssentialApp/EssentialApp.xcodeproj/project.pbxproj index 759e39dc..b781d606 100644 --- a/EssentialApp/EssentialApp.xcodeproj/project.pbxproj +++ b/EssentialApp/EssentialApp.xcodeproj/project.pbxproj @@ -37,7 +37,6 @@ 0895DAAC234B3F7E0031BB2D /* EssentialFeed.framework in Embed Frameworks */ = {isa = PBXBuildFile; fileRef = 0895DAA9234B3F7E0031BB2D /* EssentialFeed.framework */; settings = {ATTRIBUTES = (CodeSignOnCopy, RemoveHeadersOnCopy, ); }; }; 0895DAAD234B3F7E0031BB2D /* EssentialFeediOS.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 0895DAAA234B3F7E0031BB2D /* EssentialFeediOS.framework */; }; 0895DAAE234B3F7E0031BB2D /* EssentialFeediOS.framework in Embed Frameworks */ = {isa = PBXBuildFile; fileRef = 0895DAAA234B3F7E0031BB2D /* EssentialFeediOS.framework */; settings = {ATTRIBUTES = (CodeSignOnCopy, RemoveHeadersOnCopy, ); }; }; - 08CF92F62555A15B006B7E7D /* NullStore.swift in Sources */ = {isa = PBXBuildFile; fileRef = 08CF92F52555A15B006B7E7D /* NullStore.swift */; }; /* End PBXBuildFile section */ /* Begin PBXContainerItemProxy section */ @@ -101,7 +100,6 @@ 08B5033725346BAC003FF218 /* el */ = {isa = PBXFileReference; lastKnownFileType = text.plist.strings; name = el; path = el.lproj/LaunchScreen.strings; sourceTree = ""; }; 08B5033925346BE1003FF218 /* pt-BR */ = {isa = PBXFileReference; lastKnownFileType = text.plist.strings; name = "pt-BR"; path = "pt-BR.lproj/LaunchScreen.strings"; sourceTree = ""; }; 08B5033B25346BFE003FF218 /* en */ = {isa = PBXFileReference; lastKnownFileType = text.plist.strings; name = en; path = en.lproj/LaunchScreen.strings; sourceTree = ""; }; - 08CF92F52555A15B006B7E7D /* NullStore.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = NullStore.swift; sourceTree = ""; }; /* End PBXFileReference section */ /* Begin PBXFrameworksBuildPhase section */ @@ -168,7 +166,6 @@ children = ( 0895DA86234B3B950031BB2D /* AppDelegate.swift */, 0895DA88234B3B950031BB2D /* SceneDelegate.swift */, - 08CF92F52555A15B006B7E7D /* NullStore.swift */, 0835BF6C24850F9800A793D2 /* CombineHelpers.swift */, 08073B42238D2DF900A75DC6 /* FeedUIComposer.swift */, 088B441B25309B6E00D75AAD /* CommentsUIComposer.swift */, @@ -312,7 +309,6 @@ 08073B44238D2DFA00A75DC6 /* FeedUIComposer.swift in Sources */, 0895DA87234B3B950031BB2D /* AppDelegate.swift in Sources */, 08073B45238D2DFA00A75DC6 /* LoadResourcePresentationAdapter.swift in Sources */, - 08CF92F62555A15B006B7E7D /* NullStore.swift in Sources */, 08073B48238D2DFA00A75DC6 /* WeakRefVirtualProxy.swift in Sources */, 0895DA89234B3B950031BB2D /* SceneDelegate.swift in Sources */, 08073B49238D2DFA00A75DC6 /* FeedViewAdapter.swift in Sources */, diff --git a/EssentialApp/EssentialApp/NullStore.swift b/EssentialApp/EssentialApp/NullStore.swift deleted file mode 100644 index 54737357..00000000 --- a/EssentialApp/EssentialApp/NullStore.swift +++ /dev/null @@ -1,22 +0,0 @@ -// -// Copyright © Essential Developer. All rights reserved. -// - -import Foundation -import EssentialFeed - -class NullStore {} - -extension NullStore: FeedStore { - func deleteCachedFeed() throws {} - - func insert(_ feed: [LocalFeedImage], timestamp: Date) throws {} - - func retrieve() throws -> CachedFeed? { .none } -} - -extension NullStore: FeedImageDataStore { - func insert(_ data: Data, for url: URL) throws {} - - func retrieve(dataForURL url: URL) throws -> Data? { .none } -}