Skip to content

Commit 394c4a9

Browse files
committed
Remove unused code
1 parent 50caf7d commit 394c4a9

File tree

1 file changed

+0
-11
lines changed

1 file changed

+0
-11
lines changed

java/ql/lib/semmle/code/java/security/CleartextStorageSharedPrefsQuery.qll

Lines changed: 0 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -77,14 +77,3 @@ private class SharedPreferencesFlowConfig extends DataFlow::Configuration {
7777
sharedPreferencesStore(sink, _)
7878
}
7979
}
80-
81-
/**
82-
* Method call for encrypting sensitive information. As there are various implementations of
83-
* encryption (reversible and non-reversible) from both JDK and third parties, this class simply
84-
* checks method name to take a best guess to reduce false positives.
85-
*/
86-
private class EncryptedSensitiveMethodAccess extends MethodAccess {
87-
EncryptedSensitiveMethodAccess() {
88-
this.getMethod().getName().toLowerCase().matches(["%encrypt%", "%hash%"])
89-
}
90-
}

0 commit comments

Comments
 (0)