Skip to content

Commit ea5ee7e

Browse files
author
atsrus
committed
Tidying comment
1 parent 760f866 commit ea5ee7e

File tree

1 file changed

+2
-5
lines changed

1 file changed

+2
-5
lines changed

CodeEdit/Features/Welcome/Model/RecentProjectsStore.swift

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,7 @@ enum RecentProjectsStore {
8282

8383
let urlToString = url.absoluteString
8484

85-
// if file portion of local URL has "/" at the end then it is a folder , files and folders go in two separate lists
85+
// if file portion of local URL has "/" at the end then it is a folder , files and folders go in two separate lists
8686

8787
if urlToString.hasSuffix("/") {
8888
if let containedIndex = projPaths.firstIndex(where: { $0.componentCompare(url) }) {
@@ -113,7 +113,6 @@ enum RecentProjectsStore {
113113
/// Remove all folder paths in the set.
114114
/// - Parameter paths: The paths to remove.
115115
/// - Returns: The remaining urls in the recent projects list.
116-
117116
static func removeRecentFiles(_ paths: Set<URL>) -> [URL] {
118117
var recentFilePaths = recentFileURLs()
119118
recentFilePaths.removeAll(where: { paths.contains($0) })
@@ -126,9 +125,7 @@ enum RecentProjectsStore {
126125
setFilePaths([])
127126
NotificationCenter.default.post(name: Self.didUpdateNotification, object: nil)
128127
}
129-
// TODO do we need to setdocument controller for Projects AND Files????
130-
// doesn't seem like it clears in teh finder anyway
131-
// ...more testing whcn Cleairng list required.
128+
132129
/// Syncs AppKit's recent documents list with ours, keeping the dock menu and other lists up-to-date.
133130
private static func setDocumentControllerRecents() {
134131
CodeEditDocumentController.shared.clearRecentDocuments(nil)

0 commit comments

Comments
 (0)