Skip to content

Commit 6e6880b

Browse files
authored
Merge pull request #10486 from erik-krogh/java-unqueryable
Java: Delete some unused code
2 parents f0f4fe7 + a8929b6 commit 6e6880b

File tree

2 files changed

+1
-5
lines changed

2 files changed

+1
-5
lines changed

java/ql/lib/semmle/code/java/security/regexp/NfaUtilsSpecific.qll

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ module RegExpFlags {
6161
/**
6262
* Gets the flags for `root`, or the empty string if `root` has no flags.
6363
*/
64-
string getFlags(RegExpTerm root) {
64+
deprecated string getFlags(RegExpTerm root) {
6565
root.isRootTerm() and
6666
result = root.getLiteral().getFlags()
6767
}

java/ql/src/Violations of Best Practice/Naming Conventions/Shadowing.qll

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,5 @@
11
import java
22

3-
predicate initializedToField(LocalVariableDecl d, Field f) {
4-
exists(LocalVariableDeclExpr e | e.getVariable() = d and f.getAnAccess() = e.getInit())
5-
}
6-
73
predicate getterFor(Method m, Field f) {
84
m.getName().matches("get%") and
95
m.getDeclaringType() = f.getDeclaringType() and

0 commit comments

Comments
 (0)