From fe3fcba21d17d202c2c09c770fe896b2614548b2 Mon Sep 17 00:00:00 2001 From: Dan Federman Date: Fri, 8 Dec 2023 06:50:12 -0800 Subject: [PATCH] Remove now-unnecessary compilation flag check --- Sources/SafeDI/PropertyDecoration/Forwarded.swift | 7 ------- Sources/SafeDI/PropertyDecoration/Instantiable.swift | 7 ------- Sources/SafeDI/PropertyDecoration/Instantiated.swift | 7 ------- Sources/SafeDI/PropertyDecoration/Received.swift | 6 ------ 4 files changed, 27 deletions(-) diff --git a/Sources/SafeDI/PropertyDecoration/Forwarded.swift b/Sources/SafeDI/PropertyDecoration/Forwarded.swift index c6a572b6..0229aaa3 100644 --- a/Sources/SafeDI/PropertyDecoration/Forwarded.swift +++ b/Sources/SafeDI/PropertyDecoration/Forwarded.swift @@ -18,12 +18,5 @@ // OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE // SOFTWARE. -#if CI -// We don't set `-load-plugin-library` when building with xcodebuild, so we can't use the macros in CI. - -#else - /// Marks a SafeDI dependency that is injected into the parent object's initializer and forwarded to objects further down in the dependency tree. @attached(peer) public macro Forwarded() = #externalMacro(module: "SafeDIMacros", type: "InjectableMacro") - -#endif diff --git a/Sources/SafeDI/PropertyDecoration/Instantiable.swift b/Sources/SafeDI/PropertyDecoration/Instantiable.swift index b8d103cf..6563df1f 100644 --- a/Sources/SafeDI/PropertyDecoration/Instantiable.swift +++ b/Sources/SafeDI/PropertyDecoration/Instantiable.swift @@ -18,14 +18,7 @@ // OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE // SOFTWARE. -#if CI -// We don't set `-load-plugin-library` when building with xcodebuild, so we can't use the macros in CI. - -#else - /// Marks a `class`, `struct`, or `actor` as capable of having properties that conform to this type decorated with `@Instantiated` /// /// - Parameter fulfillingAdditionalTypes: The types (in addition to the type decorated with this macro) that can be decorated with `@Instantiated` and yield a result of this type. The types provided *must* be either superclasses of this type or protocols to which this type conforms. @attached(member, names: arbitrary) public macro Instantiable(fulfillingAdditionalTypes: [Any.Type] = []) = #externalMacro(module: "SafeDIMacros", type: "InstantiableMacro") - -#endif diff --git a/Sources/SafeDI/PropertyDecoration/Instantiated.swift b/Sources/SafeDI/PropertyDecoration/Instantiated.swift index 1370a8a1..90107164 100644 --- a/Sources/SafeDI/PropertyDecoration/Instantiated.swift +++ b/Sources/SafeDI/PropertyDecoration/Instantiated.swift @@ -18,12 +18,5 @@ // OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE // SOFTWARE. -#if CI -// We don't set `-load-plugin-library` when building with xcodebuild, so we can't use the macros in CI. - -#else - /// Marks a SafeDI dependency that is instantiated when its parent object is instantiated. @attached(peer) public macro Instantiated() = #externalMacro(module: "SafeDIMacros", type: "InjectableMacro") - -#endif diff --git a/Sources/SafeDI/PropertyDecoration/Received.swift b/Sources/SafeDI/PropertyDecoration/Received.swift index 92835f1d..eab890fe 100644 --- a/Sources/SafeDI/PropertyDecoration/Received.swift +++ b/Sources/SafeDI/PropertyDecoration/Received.swift @@ -18,12 +18,6 @@ // OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE // SOFTWARE. -#if CI -// We don't set `-load-plugin-library` when building with xcodebuild, so we can't use the macros in CI. - -#else - /// Marks a SafeDI dependency that is instantiated or forwarded by an object higher up in the dependency tree. @attached(peer) public macro Received() = #externalMacro(module: "SafeDIMacros", type: "InjectableMacro") -#endif