diff options
author | Ally Donaldson <unknown> | 2013-07-22 21:10:26 +0100 |
---|---|---|
committer | Ally Donaldson <unknown> | 2013-07-22 21:10:26 +0100 |
commit | 42bf19b1e4fdde3d3a936a11d2e9eeb95ddd43dd (patch) | |
tree | 7ed8a560d19856bd5e36ecc6320a2619797af85a /Source | |
parent | 272e254fc57f6debf351cdb3ea246427884857f1 (diff) |
More refactoring
Diffstat (limited to 'Source')
-rw-r--r-- | Source/Core/Absy.cs | 3 | ||||
-rw-r--r-- | Source/Core/AbsyType.cs | 6 |
2 files changed, 3 insertions, 6 deletions
diff --git a/Source/Core/Absy.cs b/Source/Core/Absy.cs index 15d79177..ad0618f7 100644 --- a/Source/Core/Absy.cs +++ b/Source/Core/Absy.cs @@ -3245,9 +3245,6 @@ namespace Microsoft.Boogie { : base(varSeq) {
Contract.Requires(varSeq != null);
}
- public void Remove() {
- RemoveAt(Count - 1);
- }
public void AppendWithoutDups(TypeVariableSeq s1) {
Contract.Requires(s1 != null);
for (int i = 0; i < s1.Count; i++) {
diff --git a/Source/Core/AbsyType.cs b/Source/Core/AbsyType.cs index fe2b9a4c..3d02768e 100644 --- a/Source/Core/AbsyType.cs +++ b/Source/Core/AbsyType.cs @@ -3178,8 +3178,8 @@ Contract.Requires(that != null); } finally {
// make sure that the bound variables are removed again
for (int i = 0; i < this.TypeParameters.Count; ++i) {
- thisBoundVariables.Remove();
- thatBoundVariables.Remove();
+ thisBoundVariables.RemoveAt(thisBoundVariables.Count - 1);
+ thatBoundVariables.RemoveAt(thatBoundVariables.Count - 1);
}
}
@@ -3372,7 +3372,7 @@ Contract.Assert(var != null); res = res * 7 + Result.GetHashCode(boundVariables);
for (int i = 0; i < this.TypeParameters.Count; ++i)
- boundVariables.Remove();
+ boundVariables.RemoveAt(boundVariables.Count - 1);
return res;
}
|