Ruby: Remove some redundant overrides

This commit is contained in:
Tom Hvitved
2021-12-22 11:25:13 +01:00
parent 06575efce9
commit d196c77b3d

View File

@@ -379,10 +379,6 @@ private module ParameterNodes {
)
}
override predicate isParameterOf(DataFlowCallable c, ParameterPosition pos) {
this.isSourceParameterOf(c.asCallable(), pos)
}
override CfgScope getCfgScope() { result = parameter.getCallable() }
override Location getLocationImpl() { result = parameter.getLocation() }
@@ -407,10 +403,6 @@ private module ParameterNodes {
method = c and pos.isSelf()
}
override predicate isParameterOf(DataFlowCallable c, ParameterPosition pos) {
this.isSourceParameterOf(c.asCallable(), pos)
}
override CfgScope getCfgScope() { result = method }
override Location getLocationImpl() { result = method.getLocation() }
@@ -437,10 +429,6 @@ private module ParameterNodes {
c = method and pos.isBlock()
}
override predicate isParameterOf(DataFlowCallable c, ParameterPosition pos) {
this.isSourceParameterOf(c.asCallable(), pos)
}
override CfgScope getCfgScope() { result = method }
override Location getLocationImpl() {