Skip to content

Commit

Permalink
Remove now-unnecessary compilation flag check
Browse files Browse the repository at this point in the history
  • Loading branch information
dfed committed Dec 8, 2023
1 parent 7b2f1e3 commit fe3fcba
Show file tree
Hide file tree
Showing 4 changed files with 0 additions and 27 deletions.
7 changes: 0 additions & 7 deletions Sources/SafeDI/PropertyDecoration/Forwarded.swift
Original file line number Diff line number Diff line change
Expand Up @@ -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
7 changes: 0 additions & 7 deletions Sources/SafeDI/PropertyDecoration/Instantiable.swift
Original file line number Diff line number Diff line change
Expand Up @@ -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
7 changes: 0 additions & 7 deletions Sources/SafeDI/PropertyDecoration/Instantiated.swift
Original file line number Diff line number Diff line change
Expand Up @@ -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
6 changes: 0 additions & 6 deletions Sources/SafeDI/PropertyDecoration/Received.swift
Original file line number Diff line number Diff line change
Expand Up @@ -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

0 comments on commit fe3fcba

Please sign in to comment.