From b0cd7608b0dfeb720121f00e2feca8a7393241c7 Mon Sep 17 00:00:00 2001 From: Cyrus Najmabadi Date: Thu, 15 Mar 2018 21:40:18 -0700 Subject: [PATCH] Remove dead code. --- .../Classification/AbstractClassifierTests.cs | 10 - .../Classification/ClassificationBuilder.cs | 200 ------------------ 2 files changed, 210 deletions(-) delete mode 100644 src/EditorFeatures/TestUtilities/Classification/ClassificationBuilder.cs diff --git a/src/EditorFeatures/TestUtilities/Classification/AbstractClassifierTests.cs b/src/EditorFeatures/TestUtilities/Classification/AbstractClassifierTests.cs index 092caf5c311..a8b1f5de9dd 100644 --- a/src/EditorFeatures/TestUtilities/Classification/AbstractClassifierTests.cs +++ b/src/EditorFeatures/TestUtilities/Classification/AbstractClassifierTests.cs @@ -188,16 +188,6 @@ public abstract class AbstractClassifierTests return TestInMethodAsync("C", "M", code, parseOptionsSet, expected); } -//<<<<<<< HEAD -// protected ClassificationBuilder.PunctuationClassificationTypes Punctuation => ClassificationBuilder.Punctuation; - -// protected ClassificationBuilder.OperatorClassificationTypes Operators => ClassificationBuilder.Operator; - -// protected ClassificationBuilder.XmlDocClassificationTypes XmlDoc => ClassificationBuilder.XmlDoc; - -// protected ClassificationBuilder.RegexClassificationTypes Regex => ClassificationBuilder.Regex; -//======= - protected Task TestInMethodAsync( string code, params FormattedClassification[] expected) diff --git a/src/EditorFeatures/TestUtilities/Classification/ClassificationBuilder.cs b/src/EditorFeatures/TestUtilities/Classification/ClassificationBuilder.cs deleted file mode 100644 index d956a8677f5..00000000000 --- a/src/EditorFeatures/TestUtilities/Classification/ClassificationBuilder.cs +++ /dev/null @@ -1,200 +0,0 @@ -//// Copyright (c) Microsoft. All Rights Reserved. Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information. - -//using System; -//using System.Diagnostics; -//using Microsoft.CodeAnalysis.Classification; - -//namespace Microsoft.CodeAnalysis.Editor.UnitTests.Classification -//{ -// public partial class ClassificationBuilder -// { -// private readonly OperatorClassificationTypes _operator = new OperatorClassificationTypes(); -// private readonly PunctuationClassificationTypes _punctuation = new PunctuationClassificationTypes(); -// private readonly XmlDocClassificationTypes _xmlDoc = new XmlDocClassificationTypes(); -// private readonly RegexClassificationTypes _regex = new RegexClassificationTypes(); - -// [DebuggerStepThrough] -// public Tuple Struct(string value) -// { -// return Tuple.Create(value, ClassificationTypeNames.StructName); -// } - -// [DebuggerStepThrough] -// public Tuple Enum(string value) -// { -// return Tuple.Create(value, ClassificationTypeNames.EnumName); -// } - -// [DebuggerStepThrough] -// public Tuple Interface(string value) -// { -// return Tuple.Create(value, ClassificationTypeNames.InterfaceName); -// } - -// [DebuggerStepThrough] -// public Tuple Class(string value) -// { -// return Tuple.Create(value, ClassificationTypeNames.ClassName); -// } - -// [DebuggerStepThrough] -// public Tuple Delegate(string value) -// { -// return Tuple.Create(value, ClassificationTypeNames.DelegateName); -// } - -// [DebuggerStepThrough] -// public Tuple TypeParameter(string value) -// { -// return Tuple.Create(value, ClassificationTypeNames.TypeParameterName); -// } - -// [DebuggerStepThrough] -// public Tuple String(string value) -// { -// return Tuple.Create(value, ClassificationTypeNames.StringLiteral); -// } - -// [DebuggerStepThrough] -// public Tuple Verbatim(string value) -// { -// return Tuple.Create(value, ClassificationTypeNames.VerbatimStringLiteral); -// } - -// [DebuggerStepThrough] -// public Tuple Keyword(string value) -// { -// return Tuple.Create(value, ClassificationTypeNames.Keyword); -// } - -// [DebuggerStepThrough] -// public Tuple WhiteSpace(string value) -// { -// return Tuple.Create(value, ClassificationTypeNames.WhiteSpace); -// } - -// [DebuggerStepThrough] -// public Tuple Text(string value) -// { -// return Tuple.Create(value, ClassificationTypeNames.Text); -// } - -// [DebuggerStepThrough] -// public Tuple NumericLiteral(string value) -// { -// return Tuple.Create(value, ClassificationTypeNames.NumericLiteral); -// } - -// [DebuggerStepThrough] -// public Tuple PPKeyword(string value) -// { -// return Tuple.Create(value, ClassificationTypeNames.PreprocessorKeyword); -// } - -// [DebuggerStepThrough] -// public Tuple PPText(string value) -// { -// return Tuple.Create(value, ClassificationTypeNames.PreprocessorText); -// } - -// [DebuggerStepThrough] -// public Tuple Identifier(string value) -// { -// return Tuple.Create(value, ClassificationTypeNames.Identifier); -// } - -// [DebuggerStepThrough] -// public Tuple Inactive(string value) -// { -// return Tuple.Create(value, ClassificationTypeNames.ExcludedCode); -// } - -// [DebuggerStepThrough] -// public Tuple Comment(string value) -// { -// return Tuple.Create(value, ClassificationTypeNames.Comment); -// } - -// [DebuggerStepThrough] -// public Tuple Number(string value) -// { -// return Tuple.Create(value, ClassificationTypeNames.NumericLiteral); -// } - -// public Tuple LineContinuation -// { -// get -// { -// return Tuple.Create("_", ClassificationTypeNames.Punctuation); -// } -// } - -// public Tuple Module(string value) -// { -// return Tuple.Create(value, ClassificationTypeNames.ModuleName); -// } - -// public Tuple VBXmlName(string value) -// { -// return Tuple.Create(value, ClassificationTypeNames.XmlLiteralName); -// } - -// public Tuple VBXmlText(string value) -// { -// return Tuple.Create(value, ClassificationTypeNames.XmlLiteralText); -// } - -// public Tuple VBXmlProcessingInstruction(string value) -// { -// return Tuple.Create(value, ClassificationTypeNames.XmlLiteralProcessingInstruction); -// } - -// public Tuple VBXmlEmbeddedExpression(string value) -// { -// return Tuple.Create(value, ClassificationTypeNames.XmlLiteralEmbeddedExpression); -// } - -// public Tuple VBXmlDelimiter(string value) -// { -// return Tuple.Create(value, ClassificationTypeNames.XmlLiteralDelimiter); -// } - -// public Tuple VBXmlComment(string value) -// { -// return Tuple.Create(value, ClassificationTypeNames.XmlLiteralComment); -// } - -// public Tuple VBXmlCDataSection(string value) -// { -// return Tuple.Create(value, ClassificationTypeNames.XmlLiteralCDataSection); -// } - -// public Tuple VBXmlAttributeValue(string value) -// { -// return Tuple.Create(value, ClassificationTypeNames.XmlLiteralAttributeValue); -// } - -// public Tuple VBXmlAttributeQuotes(string value) -// { -// return Tuple.Create(value, ClassificationTypeNames.XmlLiteralAttributeQuotes); -// } - -// public Tuple VBXmlAttributeName(string value) -// { -// return Tuple.Create(value, ClassificationTypeNames.XmlLiteralAttributeName); -// } - -// public Tuple VBXmlEntityReference(string value) -// { -// return Tuple.Create(value, ClassificationTypeNames.XmlLiteralEntityReference); -// } - -// public PunctuationClassificationTypes Punctuation => _punctuation; - -// public OperatorClassificationTypes Operator => _operator; - -// public XmlDocClassificationTypes XmlDoc => _xmlDoc; - -// public RegexClassificationTypes Regex => _regex; -// } -//} -- GitLab