mirror of
https://github.com/github/codeql.git
synced 2026-04-28 10:15:14 +02:00
delete all dead code
This commit is contained in:
@@ -40,16 +40,6 @@ private predicate class_statement(Comment c) {
|
||||
|
||||
private predicate triple_quote(Comment c) { c.getText().regexpMatch("#.*(\"\"\"|''').*") }
|
||||
|
||||
private predicate triple_quoted_string_part(Comment start, Comment end) {
|
||||
triple_quote(start) and end = start
|
||||
or
|
||||
exists(Comment mid |
|
||||
triple_quoted_string_part(start, mid) and
|
||||
end = non_empty_following(mid) and
|
||||
not triple_quote(end)
|
||||
)
|
||||
}
|
||||
|
||||
private predicate maybe_code(Comment c) {
|
||||
not non_code(c) and not filler(c) and not endline_comment(c) and not file_or_url(c)
|
||||
or
|
||||
|
||||
Reference in New Issue
Block a user