Skip to content

Commit

Permalink
Removed #if os
Browse files Browse the repository at this point in the history
  • Loading branch information
Dr. Brandon Wiley committed Nov 5, 2021
1 parent 1470458 commit 5cb3e62
Show file tree
Hide file tree
Showing 6 changed files with 4 additions and 42 deletions.
4 changes: 0 additions & 4 deletions Sources/ReplicantSwift/Polish/Polish.swift
Original file line number Diff line number Diff line change
Expand Up @@ -5,11 +5,7 @@
// Created by Mafalda on 4/28/20.
//

#if (os(macOS) || os(iOS) || os(watchOS) || os(tvOS))
import CryptoKit
#else
import Crypto
#endif

import Foundation
import Transport
Expand Down
16 changes: 2 additions & 14 deletions Sources/ReplicantSwift/Polish/Silver/SilverClientConnection.swift
Original file line number Diff line number Diff line change
Expand Up @@ -8,22 +8,10 @@
import Foundation
import Logging
import Transport
import Network

#if (os(macOS) || os(iOS) || os(watchOS) || os(tvOS))
import CryptoKit
import Keychain
#else
import Crypto
import KeychainLinux
#endif

#if os(Linux)
import NetworkLinux
//import CryptoKitLinux
#else
import Network
//import CryptoKit
#endif
import Keychain

public class SilverClientConnection
{
Expand Down
7 changes: 1 addition & 6 deletions Sources/ReplicantSwift/Polish/Silver/SilverController.swift
Original file line number Diff line number Diff line change
Expand Up @@ -8,13 +8,8 @@
import Foundation
import Logging

#if (os(macOS) || os(iOS) || os(watchOS) || os(tvOS))
import CryptoKit
import Keychain
#else
import Crypto
import KeychainLinux
#endif
import Keychain

public struct SilverController
{
Expand Down
4 changes: 0 additions & 4 deletions Sources/ReplicantSwift/Polish/Silver/SilverServer.swift
Original file line number Diff line number Diff line change
Expand Up @@ -9,11 +9,7 @@ import Foundation
import Transport
import Logging

#if (os(macOS) || os(iOS) || os(watchOS) || os(tvOS))
import CryptoKit
#else
import Crypto
#endif

public class SilverServer
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,18 +8,9 @@
import Foundation
import Logging
import Transport
import Network

#if (os(macOS) || os(iOS) || os(watchOS) || os(tvOS))
import CryptoKit
#else
import Crypto
#endif

#if os(Linux)
import NetworkLinux
#else
import Network
#endif

public class SilverServerConnection
{
Expand Down
4 changes: 0 additions & 4 deletions Sources/ReplicantSwift/ReplicantConfigTemplate.swift
Original file line number Diff line number Diff line change
Expand Up @@ -7,11 +7,7 @@

import Foundation

#if (os(macOS) || os(iOS) || os(watchOS) || os(tvOS))
import CryptoKit
#else
import Crypto
#endif

public struct ReplicantConfigTemplate
{
Expand Down

0 comments on commit 5cb3e62

Please sign in to comment.