delete more unused code. (#230)

* delete more unused code.

* pr feedback.
This commit is contained in:
Tingluo Huang
2019-12-17 16:47:14 -05:00
committed by GitHub
parent d0a4a41a63
commit 91b7e7a07a
17 changed files with 33 additions and 1489 deletions
-199
View File
@@ -4,19 +4,6 @@ namespace GitHub.Services.WebApi
{
public static class WebApiResources
{
public static string UnsupportedContentType(object arg0)
{
const string Format = @"The server returns content type {0}, which is not supported.";
return string.Format(CultureInfo.CurrentCulture, Format, arg0);
}
public static string DownloadCorrupted()
{
const string Format = @"The download file is corrupted. Get the file again.";
return Format;
}
public static string SerializingPhrase()
{
const string Format = @"being serialized";
@@ -83,18 +70,6 @@ namespace GitHub.Services.WebApi
return string.Format(CultureInfo.CurrentCulture, Format, arg0);
}
public static string JsonParseError(object arg0)
{
const string Format = @"Unable to parse JSON in: {0}";
return string.Format(CultureInfo.CurrentCulture, Format, arg0);
}
public static string MissingRequiredParameterMessage(object arg0)
{
const string Format = @"A required parameter {0} was not specified for this request.";
return string.Format(CultureInfo.CurrentCulture, Format, arg0);
}
public static string ProxyAuthenticationRequired()
{
const string Format = @"SP324097: Your network proxy requires authentication.";
@@ -143,120 +118,6 @@ namespace GitHub.Services.WebApi
return string.Format(CultureInfo.CurrentCulture, Format, arg0);
}
public static string MustacheTemplateInvalidEndBlock(object arg0)
{
const string Format = @"Unexpected end block '{0}' before any start block";
return string.Format(CultureInfo.CurrentCulture, Format, arg0);
}
public static string MustacheTemplateMissingBlockHelper(object arg0, object arg1)
{
const string Format = @"Block Helper '{0}' not found for expression '{1}'";
return string.Format(CultureInfo.CurrentCulture, Format, arg0, arg1);
}
public static string MustacheTemplateMissingHelper(object arg0, object arg1)
{
const string Format = @"Helper '{0}' not found for expression '{1}'";
return string.Format(CultureInfo.CurrentCulture, Format, arg0, arg1);
}
public static string MustacheTemplateNonMatchingEndBlock(object arg0, object arg1)
{
const string Format = @"End block '{0}' does not match start block '{1}'";
return string.Format(CultureInfo.CurrentCulture, Format, arg0, arg1);
}
public static string MustacheTemplateBraceCountMismatch(object arg0)
{
const string Format = @"The expression '{0}' is invalid due to mismatching start and end brace count.";
return string.Format(CultureInfo.CurrentCulture, Format, arg0);
}
public static string MustacheTemplateInvalidEndBraces(object arg0, object arg1)
{
const string Format = @"Invalid end braces before start braces at position '{0}' of template '{1}'";
return string.Format(CultureInfo.CurrentCulture, Format, arg0, arg1);
}
public static string MustacheTemplateInvalidStartBraces(object arg0, object arg1, object arg2)
{
const string Format = @"Invalid start braces within template expression '{0}' at position {1} of template '{2}'.";
return string.Format(CultureInfo.CurrentCulture, Format, arg0, arg1, arg2);
}
public static string MustacheTemplateInvalidEscapedStringLiteral(object arg0, object arg1)
{
const string Format = @"Invalid escape character in string literal '{0}' within template expression '{1}'";
return string.Format(CultureInfo.CurrentCulture, Format, arg0, arg1);
}
public static string MustacheTemplateUnterminatedStringLiteral(object arg0, object arg1)
{
const string Format = @"Unterminated string literal '{0}' within template expression '{1}'";
return string.Format(CultureInfo.CurrentCulture, Format, arg0, arg1);
}
public static string MustacheTemplateInvalidNumericLiteral(object arg0, object arg1)
{
const string Format = @"Invalid numeric literal '{0}' within template expression '{1}'";
return string.Format(CultureInfo.CurrentCulture, Format, arg0, arg1);
}
public static string OperationNotFoundException(object arg0)
{
const string Format = @"Failed to find operation '{0}'.";
return string.Format(CultureInfo.CurrentCulture, Format, arg0);
}
public static string OperationPluginNotFoundException(object arg0)
{
const string Format = @"Failed to find operation plugin '{0}'.";
return string.Format(CultureInfo.CurrentCulture, Format, arg0);
}
public static string OperationPluginWithSameIdException(object arg0)
{
const string Format = @"Found several plugins for the id '{0}'.";
return string.Format(CultureInfo.CurrentCulture, Format, arg0);
}
public static string OperationPluginNoPermission(object arg0, object arg1)
{
const string Format = @"The operation '{1}' for the plugin '{0}' doesn't have permission.";
return string.Format(CultureInfo.CurrentCulture, Format, arg0, arg1);
}
public static string OperationUpdateException(object arg0)
{
const string Format = @"Operation update for operation '{0}' did not complete successfully.";
return string.Format(CultureInfo.CurrentCulture, Format, arg0);
}
public static string CollectionDoesNotExistException(object arg0)
{
const string Format = @"Collection with name {0} does not exist.";
return string.Format(CultureInfo.CurrentCulture, Format, arg0);
}
public static string MissingCloseInlineMessage()
{
const string Format = @"Missing close expression for inline content.";
return Format;
}
public static string MissingEndingBracesMessage(object arg0)
{
const string Format = @"No ending braces for expression '{0}'.";
return string.Format(CultureInfo.CurrentCulture, Format, arg0);
}
public static string NestedInlinePartialsMessage()
{
const string Format = @"An inline partial cannot contain another inline partial";
return Format;
}
public static string GetServiceArgumentError(object arg0)
{
const string Format = @"'{0}' must be a non-abstract class with a public parameterless or default constructor in order to use it as parameter 'T' in GetService<T>().";
@@ -281,30 +142,6 @@ namespace GitHub.Services.WebApi
return string.Format(CultureInfo.CurrentCulture, Format, arg0);
}
public static string ClientCertificateMissing(object arg0)
{
const string Format = @"No certificate capable of client authentication was found in the certificate store with thumbprint {0}.";
return string.Format(CultureInfo.CurrentCulture, Format, arg0);
}
public static string SmartCardMissing(object arg0)
{
const string Format = @"The smart card containing the private key for the certificate with thumbprint {0} is not available.";
return string.Format(CultureInfo.CurrentCulture, Format, arg0);
}
public static string ClientCertificateNoPermission(object arg0)
{
const string Format = @"The certificate with thumbprint {0} could not be used for client authentication. The current user may not have permission to use the certificate.";
return string.Format(CultureInfo.CurrentCulture, Format, arg0);
}
public static string ClientCertificateErrorReadingStore(object arg0)
{
const string Format = @"An exception occurred while loading client authentication certificates from the certificate store: {0}";
return string.Format(CultureInfo.CurrentCulture, Format, arg0);
}
public static string CannotAuthenticateAsAnotherUser(object arg0, object arg1)
{
const string Format = @"We were unable to establish the connection because it is configured for user {0} but you attempted to connect using user {1}. To connect as a different user perform a switch user operation. To connect with the configured identity just attempt the last operation again.";
@@ -323,42 +160,6 @@ namespace GitHub.Services.WebApi
return string.Format(CultureInfo.CurrentCulture, Format, arg0);
}
public static string UnknownEntityType(object arg0)
{
const string Format = @"Unknown entityType {0}. Cannot parse.";
return string.Format(CultureInfo.CurrentCulture, Format, arg0);
}
public static string GraphGroupMissingRequiredFields()
{
const string Format = @"Must have exactly one of originId, principlaName or displayName set.";
return Format;
}
public static string GraphUserMissingRequiredFields()
{
const string Format = @"Must have exactly one of originId or principlaName set.";
return Format;
}
public static string MustacheEvaluationResultLengthExceeded(object arg0)
{
const string Format = @"The maximum evaluation result length has been exceeded. The maximum allowed length is {0:N0} characters.";
return string.Format(CultureInfo.CurrentCulture, Format, arg0);
}
public static string MustacheTemplateInlinePartialsNotAllowed()
{
const string Format = @"Inline partial expressions are not allowed";
return Format;
}
public static string MustacheTemplateMaxDepthExceeded(object arg0)
{
const string Format = @"The maximum expression depth has been exceeded. The maximum allowed expression depth is {0}.";
return string.Format(CultureInfo.CurrentCulture, Format, arg0);
}
public static string UnexpectedTokenType()
{
const string Format = @"Unexpected token type. Only JObject, JArrays, Guid, String and Boolean are supported.";