Skip to content

Commit

Permalink
Remove deprecated API
Browse files Browse the repository at this point in the history
  • Loading branch information
gjcairo committed Jan 17, 2025
1 parent a1dbd15 commit ddcc13a
Show file tree
Hide file tree
Showing 3 changed files with 0 additions and 33 deletions.
17 changes: 0 additions & 17 deletions Sources/GRPCCore/Call/Server/ServerContext.swift
Original file line number Diff line number Diff line change
Expand Up @@ -19,23 +19,6 @@ public struct ServerContext: Sendable {
/// A description of the method being called.
public var descriptor: MethodDescriptor

/// A description of the remote peer.
///
/// The format of the description should follow the pattern "<transport>:<address>" where
/// "<transport>" indicates the underlying network transport (such as "ipv4", "unix", or
/// "in-process"). This is a guideline for how descriptions should be formatted; different
/// implementations may not follow this format so you shouldn't make assumptions based on it.
///
/// Some examples include:
/// - "ipv4:127.0.0.1:31415",
/// - "ipv6:[::1]:443",
/// - "in-process:27182".
@available(*, deprecated, renamed: "remotePeer")
public var peer: String {
get { remotePeer }
set { remotePeer = newValue }
}

/// A description of the remote peer.
///
/// The format of the description should follow the pattern "<transport>:<address>" where
Expand Down
5 changes: 0 additions & 5 deletions Sources/GRPCCore/GRPCClient.swift
Original file line number Diff line number Diff line change
Expand Up @@ -227,11 +227,6 @@ public final class GRPCClient<Transport: ClientTransport>: Sendable {
}
}

@available(*, deprecated, renamed: "runConnections", message: "It'll be removed before v2.")
public func run() async throws {
try await self.runConnections()
}

/// Close the client.
///
/// The transport will be closed: this means that it will be given enough time to wait for
Expand Down
11 changes: 0 additions & 11 deletions Sources/GRPCCore/MethodDescriptor.swift
Original file line number Diff line number Diff line change
Expand Up @@ -51,17 +51,6 @@ public struct MethodDescriptor: Sendable, Hashable {
self.service = ServiceDescriptor(fullyQualifiedService: fullyQualifiedService)
self.method = method
}

@available(*, deprecated, renamed: "init(fullyQualifiedService:method:)")
/// Creates a new method descriptor.
///
/// - Parameters:
/// - service: The fully qualified name of the service, including the package
/// name. For example, "helloworld.Greeter".
/// - method: The name of the method. For example, "SayHello".
public init(service: String, method: String) {
self.init(fullyQualifiedService: service, method: method)
}
}

extension MethodDescriptor: CustomStringConvertible {
Expand Down

0 comments on commit ddcc13a

Please sign in to comment.