Skip to content

Commit

Permalink
ref: Make allFilesInFolder internal (#3592)
Browse files Browse the repository at this point in the history
SentryFileManager.allFilesInFolder is only used by the SentryFileManager
and can be internal. Furthermore, we can safely remove the test
testAllFilesInFolder as that functionality is covered with other tests.
  • Loading branch information
philipphofmann authored Jan 31, 2024
1 parent cff2b8c commit 13cd5a8
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 7 deletions.
2 changes: 0 additions & 2 deletions Sources/Sentry/include/SentryFileManager.h
Original file line number Diff line number Diff line change
Expand Up @@ -68,8 +68,6 @@ SENTRY_NO_INIT

- (void)removeFileAtPath:(NSString *)path;

- (NSArray<NSString *> *)allFilesInFolder:(NSString *)path;

- (void)storeAppState:(SentryAppState *)appState;
- (void)moveAppStateToPreviousAppState;
- (SentryAppState *_Nullable)readAppState;
Expand Down
5 changes: 0 additions & 5 deletions Tests/SentryTests/Helper/SentryFileManagerTests.swift
Original file line number Diff line number Diff line change
Expand Up @@ -206,11 +206,6 @@ class SentryFileManagerTests: XCTestCase {
try SentryFileManager.createDirectory(atPath: "a")
}

func testAllFilesInFolder() {
let files = sut.allFiles(inFolder: "x")
XCTAssertTrue(files.isEmpty)
}

func testDeleteFileNotExists() {
let logOutput = TestLogOutput()
SentryLog.setLogOutput(logOutput)
Expand Down

0 comments on commit 13cd5a8

Please sign in to comment.