Skip to content

Commit 21a06b6

Browse files
fixup: Remove all the unnecessary imports
Signed-off-by: Si Beaumont <[email protected]>
1 parent ebb4715 commit 21a06b6

7 files changed

+1
-22
lines changed

Sources/GRPC/AsyncAwaitSupport/GRPCAsyncBidirectionalStreamingCall.swift

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -16,10 +16,7 @@
1616
#if compiler(>=5.5)
1717

1818
import _NIOConcurrency
19-
import Logging
20-
import NIOCore
2119
import NIOHPACK
22-
import NIOHTTP2
2320

2421
/// Async-await variant of BidirectionalStreamingCall.
2522
@available(macOS 12, iOS 15, tvOS 15, watchOS 8, *)

Sources/GRPC/AsyncAwaitSupport/GRPCAsyncClientStreamingCall.swift

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -15,10 +15,7 @@
1515
*/
1616
#if compiler(>=5.5)
1717

18-
import Logging
19-
import NIOCore
2018
import NIOHPACK
21-
import NIOHTTP2
2219

2320
/// Async-await variant of `ClientStreamingCall`.
2421
@available(macOS 12, iOS 15, tvOS 15, watchOS 8, *)

Sources/GRPC/AsyncAwaitSupport/GRPCAsyncServerStreamingCall.swift

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -15,10 +15,7 @@
1515
*/
1616
#if compiler(>=5.5)
1717

18-
import Logging
19-
import NIOCore
2018
import NIOHPACK
21-
import NIOHTTP2
2219

2320
/// Async-await variant of `ServerStreamingCall`.
2421
@available(macOS 12, iOS 15, tvOS 15, watchOS 8, *)

Sources/GRPC/AsyncAwaitSupport/GRPCAsyncUnaryCall.swift

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -15,13 +15,7 @@
1515
*/
1616
#if compiler(>=5.5)
1717

18-
import Foundation
19-
import Logging
20-
import NIOCore
2118
import NIOHPACK
22-
import NIOHTTP1
23-
import NIOHTTP2
24-
import SwiftProtobuf
2519

2620
/// A unary gRPC call. The request is sent on initialization.
2721
///

Sources/GRPC/AsyncAwaitSupport/GRPCChannel+AsyncAwaitSupport.swift

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -15,9 +15,6 @@
1515
*/
1616
#if compiler(>=5.5)
1717

18-
import NIOCore
19-
import NIOHTTP2
20-
import NIOSSL
2118
import SwiftProtobuf
2219

2320
@available(macOS 12, iOS 15, tvOS 15, watchOS 8, *)

Sources/GRPC/AsyncAwaitSupport/GRPCClient+AsyncAwaitSupport.swift

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -15,13 +15,11 @@
1515
*/
1616
#if compiler(>=5.5)
1717

18-
import NIOCore
19-
import NIOHTTP2
2018
import SwiftProtobuf
2119

2220
@available(macOS 12, iOS 15, tvOS 15, watchOS 8, *)
2321
extension GRPCClient {
24-
public func makeAsyncUnaryCall<Request: SwiftProtobuf.Message, Response: SwiftProtobuf.Message>(
22+
public func makeAsyncUnaryCall<Request: Message, Response: Message>(
2523
path: String,
2624
request: Request,
2725
callOptions: CallOptions? = nil,

Tests/GRPCTests/GRPCAsyncClientCallTests.swift

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,6 @@
1818
import EchoImplementation
1919
import EchoModel
2020
@testable import GRPC
21-
import NIOCore
2221
import NIOPosix
2322
import XCTest
2423

0 commit comments

Comments
 (0)