mirror of
https://github.com/github/codeql.git
synced 2025-12-24 04:36:35 +01:00
Merge pull request #10486 from erik-krogh/java-unqueryable
Java: Delete some unused code
This commit is contained in:
@@ -61,7 +61,7 @@ module RegExpFlags {
|
||||
/**
|
||||
* Gets the flags for `root`, or the empty string if `root` has no flags.
|
||||
*/
|
||||
string getFlags(RegExpTerm root) {
|
||||
deprecated string getFlags(RegExpTerm root) {
|
||||
root.isRootTerm() and
|
||||
result = root.getLiteral().getFlags()
|
||||
}
|
||||
|
||||
@@ -1,9 +1,5 @@
|
||||
import java
|
||||
|
||||
predicate initializedToField(LocalVariableDecl d, Field f) {
|
||||
exists(LocalVariableDeclExpr e | e.getVariable() = d and f.getAnAccess() = e.getInit())
|
||||
}
|
||||
|
||||
predicate getterFor(Method m, Field f) {
|
||||
m.getName().matches("get%") and
|
||||
m.getDeclaringType() = f.getDeclaringType() and
|
||||
|
||||
Reference in New Issue
Block a user