Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit ee1d2b6

Browse files
committed
Delete DirectRegex and CompiledRegex
1 parent ce23db2 commit ee1d2b6

1 file changed

Lines changed: 0 additions & 37 deletions

File tree

  • python/ql/src/experimental/semmle/python/frameworks

python/ql/src/experimental/semmle/python/frameworks/Stdlib.qll

Lines changed: 0 additions & 37 deletions
Original file line numberDiff line numberDiff line change
@@ -212,42 +212,5 @@ private module Stdlib {
212212
)
213213
}
214214
}
215-
216-
/**
217-
* A class for modeling expressions immediately executing a regular expression.
218-
* See `re_exec_attr()`
219-
*/
220-
private class DirectRegex extends DataFlow::CallCfgNode, RegexExecution::Range {
221-
DataFlow::Node regexNode;
222-
Attribute regexMethod;
223-
224-
DirectRegex() {
225-
// needs inheritance (?)
226-
this = re_exec_attr() and regexNode = this.getRegexNode() and regexMethod = this.getRegexMethod()
227-
}
228-
229-
override DataFlow::Node getRegexNode() { result = regexNode }
230-
override Attribute getRegexMethod() { result = regexMethod }
231-
}
232-
233-
/**
234-
* A class for finding `ReCompileCall` whose `Attribute` is an instance of `DirectRegex`.
235-
* See `ReCompileCall`, `DirectRegex`, `re_exec_attr()`
236-
*/
237-
private class CompiledRegex extends DataFlow::CallCfgNode, RegexExecution::Range {
238-
DataFlow::Node regexNode;
239-
Attribute regexMethod;
240-
241-
CompiledRegex() {
242-
exists(ReCompileCall compileCall |
243-
regexNode = compileCall.getRegexNode() and
244-
regexMethod = compileCall.getRegexMethod() and
245-
this = compileCall
246-
)
247-
}
248-
249-
override DataFlow::Node getRegexNode() { result = regexNode }
250-
override Attribute getRegexMethod() { result = regexMethod }
251-
}
252215
}
253216
}

0 commit comments

Comments
 (0)