summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorAndrew Arnott <andrewarnott@gmail.com>2010-06-10 21:15:21 -0700
committerAndrew Arnott <andrewarnott@gmail.com>2010-06-10 21:15:21 -0700
commitc7cdec40eb439ca34bb42ce48e2ed12c960daaa7 (patch)
tree4682fb11425061b967ddf5bf77f3d1c3c1468de3 /src
parentcc061e16ace2a05b6f9f2fa0edd81b05069535c6 (diff)
downloadDotNetOpenAuth-c7cdec40eb439ca34bb42ce48e2ed12c960daaa7.zip
DotNetOpenAuth-c7cdec40eb439ca34bb42ce48e2ed12c960daaa7.tar.gz
DotNetOpenAuth-c7cdec40eb439ca34bb42ce48e2ed12c960daaa7.tar.bz2
Resolved some CC warnings.
Diffstat (limited to 'src')
-rw-r--r--src/DotNetOpenAuth/Messaging/ITamperProtectionChannelBindingElement.cs4
-rw-r--r--src/DotNetOpenAuth/OAuth/ChannelElements/IServiceProviderTokenManager.cs9
2 files changed, 0 insertions, 13 deletions
diff --git a/src/DotNetOpenAuth/Messaging/ITamperProtectionChannelBindingElement.cs b/src/DotNetOpenAuth/Messaging/ITamperProtectionChannelBindingElement.cs
index 87ea553..e177dd9 100644
--- a/src/DotNetOpenAuth/Messaging/ITamperProtectionChannelBindingElement.cs
+++ b/src/DotNetOpenAuth/Messaging/ITamperProtectionChannelBindingElement.cs
@@ -82,8 +82,6 @@ namespace DotNetOpenAuth.Messaging {
/// <see cref="MessagePartAttribute.RequiredProtection"/> properties where applicable.
/// </remarks>
MessageProtections? IChannelBindingElement.ProcessOutgoingMessage(IProtocolMessage message) {
- Contract.Requires<ArgumentNullException>(message != null);
- Contract.Requires<InvalidOperationException>(((IChannelBindingElement)this).Channel != null);
throw new NotImplementedException();
}
@@ -105,8 +103,6 @@ namespace DotNetOpenAuth.Messaging {
/// <see cref="MessagePartAttribute.RequiredProtection"/> properties where applicable.
/// </remarks>
MessageProtections? IChannelBindingElement.ProcessIncomingMessage(IProtocolMessage message) {
- Contract.Requires<ArgumentNullException>(message != null);
- Contract.Requires<InvalidOperationException>(((IChannelBindingElement)this).Channel != null);
throw new NotImplementedException();
}
diff --git a/src/DotNetOpenAuth/OAuth/ChannelElements/IServiceProviderTokenManager.cs b/src/DotNetOpenAuth/OAuth/ChannelElements/IServiceProviderTokenManager.cs
index 0978a1e..7df67ce 100644
--- a/src/DotNetOpenAuth/OAuth/ChannelElements/IServiceProviderTokenManager.cs
+++ b/src/DotNetOpenAuth/OAuth/ChannelElements/IServiceProviderTokenManager.cs
@@ -188,8 +188,6 @@ namespace DotNetOpenAuth.OAuth.ChannelElements {
/// </returns>
/// <exception cref="ArgumentException">Thrown if the secret cannot be found for the given token.</exception>
string ITokenManager.GetTokenSecret(string token) {
- Contract.Requires<ArgumentException>(!String.IsNullOrEmpty(token));
- Contract.Ensures(Contract.Result<string>() != null);
throw new NotImplementedException();
}
@@ -207,8 +205,6 @@ namespace DotNetOpenAuth.OAuth.ChannelElements {
/// method.
/// </remarks>
void ITokenManager.StoreNewRequestToken(DotNetOpenAuth.OAuth.Messages.UnauthorizedTokenRequest request, DotNetOpenAuth.OAuth.Messages.ITokenSecretContainingMessage response) {
- Contract.Requires<ArgumentNullException>(request != null);
- Contract.Requires<ArgumentNullException>(response != null);
throw new NotImplementedException();
}
@@ -236,10 +232,6 @@ namespace DotNetOpenAuth.OAuth.ChannelElements {
/// </para>
/// </remarks>
void ITokenManager.ExpireRequestTokenAndStoreNewAccessToken(string consumerKey, string requestToken, string accessToken, string accessTokenSecret) {
- Contract.Requires<ArgumentException>(!String.IsNullOrEmpty(consumerKey));
- Contract.Requires<ArgumentException>(!String.IsNullOrEmpty(requestToken));
- Contract.Requires<ArgumentException>(!String.IsNullOrEmpty(accessToken));
- Contract.Requires<ArgumentNullException>(accessTokenSecret != null);
throw new NotImplementedException();
}
@@ -251,7 +243,6 @@ namespace DotNetOpenAuth.OAuth.ChannelElements {
/// Request or Access token, or invalid if the token is not recognized.
/// </returns>
TokenType ITokenManager.GetTokenType(string token) {
- Contract.Requires<ArgumentException>(!String.IsNullOrEmpty(token));
throw new NotImplementedException();
}