From 1252d0d33bcfaa2d26abc3bd45fd319a92ea9417 Mon Sep 17 00:00:00 2001 From: Christopher Fuller Date: Sun, 2 Mar 2025 15:04:11 -0800 Subject: [PATCH] Remove extraneous `pluginListInterfaceImports` --- Sources/NodesGenerator/Config.swift | 5 ----- .../__Snapshots__/ConfigTests/testConfig.1.txt | 1 - .../ConfigTests/testConfigWithEmptyFileContents.1.txt | 1 - .../ConfigTests/testDecodingFromEmptyString.1.txt | 1 - .../ConfigTests/testDecodingWithEmptyArray.1.txt | 1 - 5 files changed, 9 deletions(-) diff --git a/Sources/NodesGenerator/Config.swift b/Sources/NodesGenerator/Config.swift index 22addf0ec..6da59c7ca 100644 --- a/Sources/NodesGenerator/Config.swift +++ b/Sources/NodesGenerator/Config.swift @@ -39,7 +39,6 @@ public struct Config: Codable, Equatable { public var builderImports: Set public var flowImports: Set public var pluginListImports: Set - public var pluginListInterfaceImports: Set public var viewControllerImports: Set public var dependencies: [Variable] public var analyticsProperties: [Variable] @@ -96,7 +95,6 @@ extension Config { builderImports = [] flowImports = [] pluginListImports = [] - pluginListInterfaceImports = [] viewControllerImports = [] dependencies = [] analyticsProperties = [] @@ -173,9 +171,6 @@ extension Config { pluginListImports = (try? decoder.decode(CodingKeys.pluginListImports)) ?? defaults.pluginListImports - pluginListInterfaceImports = - (try? decoder.decode(CodingKeys.pluginListInterfaceImports)) - ?? defaults.pluginListInterfaceImports viewControllerImports = (try? decoder.decode(CodingKeys.viewControllerImports)) ?? defaults.viewControllerImports diff --git a/Tests/NodesGeneratorTests/__Snapshots__/ConfigTests/testConfig.1.txt b/Tests/NodesGeneratorTests/__Snapshots__/ConfigTests/testConfig.1.txt index c64b4c986..0b458768c 100644 --- a/Tests/NodesGeneratorTests/__Snapshots__/ConfigTests/testConfig.1.txt +++ b/Tests/NodesGeneratorTests/__Snapshots__/ConfigTests/testConfig.1.txt @@ -46,7 +46,6 @@ ▿ pluginListImports: 2 members - "" - "" - - pluginListInterfaceImports: 0 members - publisherFailureType: "" - publisherType: "" ▿ reactiveImports: 2 members diff --git a/Tests/NodesGeneratorTests/__Snapshots__/ConfigTests/testConfigWithEmptyFileContents.1.txt b/Tests/NodesGeneratorTests/__Snapshots__/ConfigTests/testConfigWithEmptyFileContents.1.txt index 55d59069f..c74f85b43 100644 --- a/Tests/NodesGeneratorTests/__Snapshots__/ConfigTests/testConfigWithEmptyFileContents.1.txt +++ b/Tests/NodesGeneratorTests/__Snapshots__/ConfigTests/testConfigWithEmptyFileContents.1.txt @@ -18,7 +18,6 @@ - isTestTemplatesGenerationEnabled: true - isViewInjectedTemplateEnabled: true - pluginListImports: 0 members - - pluginListInterfaceImports: 0 members - publisherFailureType: "Never" - publisherType: "AnyPublisher" ▿ reactiveImports: 1 member diff --git a/Tests/NodesGeneratorTests/__Snapshots__/ConfigTests/testDecodingFromEmptyString.1.txt b/Tests/NodesGeneratorTests/__Snapshots__/ConfigTests/testDecodingFromEmptyString.1.txt index 55d59069f..c74f85b43 100644 --- a/Tests/NodesGeneratorTests/__Snapshots__/ConfigTests/testDecodingFromEmptyString.1.txt +++ b/Tests/NodesGeneratorTests/__Snapshots__/ConfigTests/testDecodingFromEmptyString.1.txt @@ -18,7 +18,6 @@ - isTestTemplatesGenerationEnabled: true - isViewInjectedTemplateEnabled: true - pluginListImports: 0 members - - pluginListInterfaceImports: 0 members - publisherFailureType: "Never" - publisherType: "AnyPublisher" ▿ reactiveImports: 1 member diff --git a/Tests/NodesGeneratorTests/__Snapshots__/ConfigTests/testDecodingWithEmptyArray.1.txt b/Tests/NodesGeneratorTests/__Snapshots__/ConfigTests/testDecodingWithEmptyArray.1.txt index 55d59069f..c74f85b43 100644 --- a/Tests/NodesGeneratorTests/__Snapshots__/ConfigTests/testDecodingWithEmptyArray.1.txt +++ b/Tests/NodesGeneratorTests/__Snapshots__/ConfigTests/testDecodingWithEmptyArray.1.txt @@ -18,7 +18,6 @@ - isTestTemplatesGenerationEnabled: true - isViewInjectedTemplateEnabled: true - pluginListImports: 0 members - - pluginListInterfaceImports: 0 members - publisherFailureType: "Never" - publisherType: "AnyPublisher" ▿ reactiveImports: 1 member