Skip to content

Commit

Permalink
Deleted unused fields from the structure parser interfaces.
Browse files Browse the repository at this point in the history
  • Loading branch information
MeltyPlayer committed Aug 6, 2023
1 parent 1de1b39 commit 98a2aeb
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 6 deletions.
4 changes: 0 additions & 4 deletions Schema/src/binary/BinarySchemaStructureParser.cs
Original file line number Diff line number Diff line change
Expand Up @@ -64,15 +64,12 @@ public interface IPrimitiveMemberType : IMemberType {
}

public interface IStructureMemberType : IMemberType {
IStructureTypeInfo StructureTypeInfo { get; }
bool IsReferenceType { get; }
bool IsChild { get; }
bool IsStruct { get; }
}

public interface IGenericMemberType : IMemberType {
IMemberType ConstraintType { get; }
IGenericTypeInfo GenericTypeInfo { get; }
}

public interface IOffset {
Expand Down Expand Up @@ -609,7 +606,6 @@ public class StructureMemberType : IStructureMemberType {
public ITypeSymbol TypeSymbol => TypeInfo.TypeSymbol;
public bool IsReadOnly => this.TypeInfo.IsReadOnly;

public bool IsReferenceType { get; set; }
public bool IsChild { get; set; }
public bool IsStruct => StructureTypeInfo.IsStruct;
}
Expand Down
2 changes: 0 additions & 2 deletions Schema/src/binary/parser/MemberReferenceUtil.cs
Original file line number Diff line number Diff line change
Expand Up @@ -26,8 +26,6 @@ public static IMemberType WrapTypeInfoWithMemberType(ITypeInfo typeInfo) {
case IStructureTypeInfo structureTypeInfo: {
return new BinarySchemaStructureParser.StructureMemberType {
StructureTypeInfo = structureTypeInfo,
IsReferenceType =
structureTypeInfo.NamedTypeSymbol.IsReferenceType,
};
}
case IGenericTypeInfo genericTypeInfo: {
Expand Down

0 comments on commit 98a2aeb

Please sign in to comment.