Skip to content

Commit 1a1980a

Browse files
Remove some unused members
1 parent 5d2121a commit 1a1980a

File tree

3 files changed

+2
-38
lines changed

3 files changed

+2
-38
lines changed

ICSharpCode.Decompiler/CSharp/Syntax/Expressions/ArrayInitializerExpression.cs

Lines changed: 0 additions & 29 deletions
Original file line numberDiff line numberDiff line change
@@ -34,18 +34,6 @@ namespace ICSharpCode.Decompiler.CSharp.Syntax
3434
[DecompilerAstNode(hasNullNode: true, hasPatternPlaceholder: true)]
3535
public partial class ArrayInitializerExpression : Expression
3636
{
37-
/// <summary>
38-
/// For ease of use purposes in the resolver the ast representation
39-
/// of { a, b, c } is { {a}, {b}, {c} }.
40-
/// If IsSingleElement is true then this array initializer expression is a generated one.
41-
/// That has no meaning in the source code (and contains no brace tokens).
42-
/// </summary>
43-
public virtual bool IsSingleElement {
44-
get {
45-
return false;
46-
}
47-
}
48-
4937
public ArrayInitializerExpression()
5038
{
5139
}
@@ -77,23 +65,6 @@ protected internal override bool DoMatch(AstNode other, PatternMatching.Match ma
7765
ArrayInitializerExpression o = other as ArrayInitializerExpression;
7866
return o != null && this.Elements.DoMatch(o.Elements, match);
7967
}
80-
81-
public static ArrayInitializerExpression CreateSingleElementInitializer()
82-
{
83-
return new SingleArrayInitializerExpression();
84-
}
85-
/// <summary>
86-
/// Single elements in array initializers are represented with this special class.
87-
/// </summary>
88-
class SingleArrayInitializerExpression : ArrayInitializerExpression
89-
{
90-
public override bool IsSingleElement {
91-
get {
92-
return true;
93-
}
94-
}
95-
96-
}
9768
}
9869
}
9970

ICSharpCode.Decompiler/CSharp/Syntax/Role.cs

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -88,15 +88,6 @@ public override bool IsValid(object node)
8888
return node is T;
8989
}
9090

91-
[Obsolete("Use the other overload explicitly specifying the nullObject.")]
92-
public Role(string name)
93-
{
94-
if (name == null)
95-
throw new ArgumentNullException(nameof(name));
96-
this.name = name;
97-
this.nullObject = null!;
98-
}
99-
10091
public Role(string name, T nullObject)
10192
{
10293
this.name = name ?? throw new ArgumentNullException(nameof(name));

ICSharpCode.Decompiler/CSharp/Syntax/TypeMembers/EntityDeclaration.cs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@
1616
// OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
1717
// DEALINGS IN THE SOFTWARE.
1818

19+
using System;
1920
using System.Collections.Generic;
2021
using System.Linq;
2122

@@ -33,6 +34,7 @@ public override NodeType NodeType {
3334
get { return NodeType.Member; }
3435
}
3536

37+
[Obsolete]
3638
public abstract SymbolKind SymbolKind { get; }
3739

3840
public AstNodeCollection<AttributeSection> Attributes {

0 commit comments

Comments
 (0)