Python: Removes obsolete predicate

This commit is contained in:
Rebecca Valentine
2020-03-02 18:53:06 -08:00
parent e481ddf99e
commit 2bbe4759ba

View File

@@ -1,15 +1,6 @@
import python
/** Holds if `notimpl` refers to `NotImplemented` or `NotImplemented()` in the `raise` statement */
predicate use_of_not_implemented_in_raise_objectapi(Raise raise, Expr notimpl) {
notimpl.refersTo(Object::notImplemented()) and
(
notimpl = raise.getException() or
notimpl = raise.getException().(Call).getFunc()
)
}
/** Holds if `notimpl` refers to `NotImplemented` or `NotImplemented()` in the `raise` statement */
predicate use_of_not_implemented_in_raise(Raise raise, Expr notimpl) {
notimpl.pointsTo(Value::named("NotImplemented")) and