Skip to content

Commit 284df2e

Browse files
committed
Cleaned up unecessary function
1 parent b31e07d commit 284df2e

File tree

1 file changed

+0
-11
lines changed

1 file changed

+0
-11
lines changed

CodeEdit/Features/Settings/Pages/SourceControlSettings/Models/IgnorePatternModel.swift

Lines changed: 0 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -259,11 +259,6 @@ class IgnorePatternModel: ObservableObject {
259259

260260
@MainActor
261261
func addPattern() {
262-
if patterns.isEmpty {
263-
Task {
264-
await setupGlobalIgnoreFile()
265-
}
266-
}
267262
patterns.append(GlobPattern(value: ""))
268263
}
269264

@@ -273,10 +268,4 @@ class IgnorePatternModel: ObservableObject {
273268
patterns.removeAll { patternsToRemove.contains($0) }
274269
self.selection.removeAll()
275270
}
276-
277-
func setupGlobalIgnoreFile() async {
278-
guard !FileManager.default.fileExists(atPath: fileURL.path) else { return }
279-
FileManager.default.createFile(atPath: fileURL.path, contents: nil)
280-
await gitConfig.set(key: "core.excludesfile", value: "~/\(fileURL.lastPathComponent)")
281-
}
282271
}

0 commit comments

Comments
 (0)