From fb297e0b462250f56173e2a06c668dae702aac95 Mon Sep 17 00:00:00 2001 From: Kuinox Date: Sun, 27 Oct 2024 22:06:06 +0100 Subject: [PATCH] Removed unused field ir model. --- .../Internal/OptimizingIr/Model/Field.cs | 18 ----------- .../Internal/OptimizingIr/Model/IField.cs | 32 ------------------- 2 files changed, 50 deletions(-) delete mode 100644 src/Draco.Compiler/Internal/OptimizingIr/Model/Field.cs delete mode 100644 src/Draco.Compiler/Internal/OptimizingIr/Model/IField.cs diff --git a/src/Draco.Compiler/Internal/OptimizingIr/Model/Field.cs b/src/Draco.Compiler/Internal/OptimizingIr/Model/Field.cs deleted file mode 100644 index 4c53f33b6..000000000 --- a/src/Draco.Compiler/Internal/OptimizingIr/Model/Field.cs +++ /dev/null @@ -1,18 +0,0 @@ -using System.Collections.Generic; -using Draco.Compiler.Internal.Symbols; - -namespace Draco.Compiler.Internal.OptimizingIr.Model; - -internal sealed class Field(FieldSymbol symbol, Type declaringType) : IField -{ - public FieldSymbol Symbol { get; } = symbol; - - public string Name => this.Symbol.Name; - - public Type DeclaringType { get; } = declaringType; - IType IField.DeclaringType => this.DeclaringType; - - public IReadOnlyList Attributes => this.Symbol.Attributes; - - public TypeSymbol Type => this.Symbol.Type; -} diff --git a/src/Draco.Compiler/Internal/OptimizingIr/Model/IField.cs b/src/Draco.Compiler/Internal/OptimizingIr/Model/IField.cs deleted file mode 100644 index a818dfb2b..000000000 --- a/src/Draco.Compiler/Internal/OptimizingIr/Model/IField.cs +++ /dev/null @@ -1,32 +0,0 @@ -using System.Collections.Generic; -using Draco.Compiler.Internal.Symbols; - -namespace Draco.Compiler.Internal.OptimizingIr.Model; - -/// -/// Read-only interface of a field. -/// -internal interface IField -{ - public FieldSymbol Symbol { get; } - - /// - /// The name of this field. - /// - public string Name { get; } - - /// - /// The type this procedure is defined in. - /// - public IType DeclaringType { get; } - - /// - /// The attributes on this field. - /// - public IReadOnlyList Attributes { get; } - - /// - /// The type of this field. - /// - public TypeSymbol Type { get; } -}