[xcodegen] Remove isImportant

This only existed to avoid adding anything under
a folder reference. Now that we add those
references first, this is no longer needed.
This commit is contained in:
Hamish Knight
2024-11-09 20:01:37 +00:00
parent 5ff60d014b
commit 29cfe90869
3 changed files with 12 additions and 26 deletions

View File

@@ -199,10 +199,10 @@ fileprivate final class ProjectGenerator {
@discardableResult
private func getOrCreateRepoRef(
_ ref: ProjectSpec.PathReference, allowExcluded: Bool = false
_ ref: ProjectSpec.PathReference
) -> Xcode.FileReference? {
let path = ref.path
guard allowExcluded || checkNotExcluded(path) else { return nil }
guard checkNotExcluded(path) else { return nil }
return getOrCreateProjectRef(ref.withPath(repoRelativePath.appending(path)))
}
@@ -629,8 +629,7 @@ fileprivate final class ProjectGenerator {
// First add file/folder references.
for ref in spec.referencesToAdd {
// Allow important references to bypass exclusion checks.
getOrCreateRepoRef(ref, allowExcluded: ref.isImportant)
getOrCreateRepoRef(ref)
}
// Gather the Swift targets to generate, including any dependencies.