aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/csharp/Grpc.Core/ChannelCredentials.cs
diff options
context:
space:
mode:
Diffstat (limited to 'src/csharp/Grpc.Core/ChannelCredentials.cs')
-rw-r--r--src/csharp/Grpc.Core/ChannelCredentials.cs33
1 files changed, 0 insertions, 33 deletions
diff --git a/src/csharp/Grpc.Core/ChannelCredentials.cs b/src/csharp/Grpc.Core/ChannelCredentials.cs
index 599674e02b..9d2bcdabe8 100644
--- a/src/csharp/Grpc.Core/ChannelCredentials.cs
+++ b/src/csharp/Grpc.Core/ChannelCredentials.cs
@@ -72,17 +72,6 @@ namespace Grpc.Core
}
/// <summary>
- /// Creates a new instance of <c>ChannelCredentials</c> by wrapping
- /// an instance of <c>CallCredentials</c>.
- /// </summary>
- /// <param name="callCredentials">Call credentials.</param>
- /// <returns>The <c>ChannelCredentials</c> wrapping given call credentials.</returns>
- public static ChannelCredentials Create(CallCredentials callCredentials)
- {
- return new WrappedCallCredentials(callCredentials);
- }
-
- /// <summary>
/// Creates native object for the credentials. May return null if insecure channel
/// should be created.
/// </summary>
@@ -213,26 +202,4 @@ namespace Grpc.Core
}
}
}
-
- /// <summary>
- /// Credentials wrapping <see cref="CallCredentials"/> as <see cref="ChannelCredentials"/>.
- /// </summary>
- internal sealed class WrappedCallCredentials : ChannelCredentials
- {
- readonly CallCredentials callCredentials;
-
- /// <summary>
- /// Wraps instance of <c>CallCredentials</c> as <c>ChannelCredentials</c>.
- /// </summary>
- /// <param name="callCredentials">credentials to wrap</param>
- public WrappedCallCredentials(CallCredentials callCredentials)
- {
- this.callCredentials = Preconditions.CheckNotNull(callCredentials);
- }
-
- internal override CredentialsSafeHandle ToNativeCredentials()
- {
- return callCredentials.ToNativeCredentials();
- }
- }
}