Skip to content

Commit

Permalink
C import changes (#677)
Browse files Browse the repository at this point in the history
* Remove unnecessary imports

* Add Android import to Environment.swift
  • Loading branch information
adam-fowler authored Feb 15, 2025
1 parent 567c1fd commit ee19084
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 10 deletions.
2 changes: 2 additions & 0 deletions Sources/Hummingbird/Environment.swift
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,8 @@ import Glibc
import Musl
#elseif canImport(Darwin)
import Darwin.C
#elseif canImport(Android)
import Android
#else
#error("Unsupported platform")
#endif
Expand Down
10 changes: 0 additions & 10 deletions Sources/Hummingbird/Utils/DateCache.swift
Original file line number Diff line number Diff line change
Expand Up @@ -24,16 +24,6 @@ import FoundationEssentials
import Foundation
#endif

#if canImport(Glibc)
import Glibc
#elseif canImport(Musl)
import Musl
#elseif canImport(Darwin)
import Darwin.C
#else
#error("Unsupported platform")
#endif

/// Current date formatted cache service
///
/// Getting the current date formatted is an expensive operation. This creates a task that will
Expand Down

0 comments on commit ee19084

Please sign in to comment.