Skip to content

Commit 094b06e

Browse files
author
Robert Marsh
committed
C++: remove unneeded predicate
1 parent 89332ca commit 094b06e

File tree

2 files changed

+0
-7
lines changed

2 files changed

+0
-7
lines changed

cpp/ql/src/semmle/code/cpp/models/implementations/Iterator.qll

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -93,8 +93,6 @@ class IteratorPointerDereferenceOperator extends Operator, TaintFunction, Iterat
9393
input = iteratorInput and
9494
output.isReturnValue()
9595
}
96-
97-
override FunctionInput getIteratorInput() { result = iteratorInput }
9896
}
9997

10098
/**
@@ -179,8 +177,6 @@ class IteratorPointerDereferenceMemberOperator extends MemberFunction, TaintFunc
179177
this.getDeclaringType() instanceof Iterator
180178
}
181179

182-
override FunctionInput getIteratorInput() { result.isQualifierObject() }
183-
184180
override predicate hasTaintFlow(FunctionInput input, FunctionOutput output) {
185181
input.isQualifierObject() and
186182
output.isReturnValue()
@@ -276,8 +272,6 @@ class IteratorArrayMemberOperator extends MemberFunction, TaintFunction, Iterato
276272
input.isQualifierObject() and
277273
output.isReturnValue()
278274
}
279-
280-
override FunctionInput getIteratorInput() { result.isQualifierObject() }
281275
}
282276

283277
/**

cpp/ql/src/semmle/code/cpp/models/interfaces/Iterator.qll

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,5 +15,4 @@ import semmle.code.cpp.models.Models
1515
* can be used to write to the iterator's underlying collection.
1616
*/
1717
abstract class IteratorReferenceFunction extends Function {
18-
abstract FunctionInput getIteratorInput();
1918
}

0 commit comments

Comments
 (0)