mirror of
https://github.com/github/codeql.git
synced 2026-04-23 07:45:17 +02:00
Ruby: delete various deprecated predicates
This commit is contained in:
@@ -1096,10 +1096,7 @@ module Cryptography {
|
||||
* extend `CryptographicOperation::Range` instead.
|
||||
*/
|
||||
class CryptographicOperation extends SC::CryptographicOperation instanceof CryptographicOperation::Range
|
||||
{
|
||||
/** DEPRECATED: Use `getAlgorithm().isWeak() or getBlockMode().isWeak()` instead */
|
||||
deprecated predicate isWeak() { super.isWeak() }
|
||||
}
|
||||
{ }
|
||||
|
||||
/** Provides classes for modeling new applications of a cryptographic algorithms. */
|
||||
module CryptographicOperation {
|
||||
@@ -1110,10 +1107,7 @@ module Cryptography {
|
||||
* Extend this class to model new APIs. If you want to refine existing API models,
|
||||
* extend `CryptographicOperation` instead.
|
||||
*/
|
||||
abstract class Range extends SC::CryptographicOperation::Range {
|
||||
/** DEPRECATED: Use `getAlgorithm().isWeak() or getBlockMode().isWeak()` instead */
|
||||
deprecated predicate isWeak() { this.getAlgorithm().isWeak() or this.getBlockMode().isWeak() }
|
||||
}
|
||||
abstract class Range extends SC::CryptographicOperation::Range { }
|
||||
}
|
||||
|
||||
class BlockMode = SC::BlockMode;
|
||||
|
||||
@@ -80,12 +80,6 @@ class ConstantValue extends TConstantValue {
|
||||
/** Holds if this is the regexp value `/s/flags` . */
|
||||
predicate isRegExpWithFlags(string s, string flags) { this = TRegExp(s, flags) }
|
||||
|
||||
/** DEPRECATED: Use `getStringlikeValue` instead. */
|
||||
deprecated string getStringOrSymbol() { result = this.getStringlikeValue() }
|
||||
|
||||
/** DEPRECATED: Use `isStringlikeValue` instead. */
|
||||
deprecated predicate isStringOrSymbol(string s) { s = this.getStringlikeValue() }
|
||||
|
||||
/** Gets the string/symbol/regexp value, if any. */
|
||||
string getStringlikeValue() { result = [this.getString(), this.getSymbol(), this.getRegExp()] }
|
||||
|
||||
|
||||
@@ -63,9 +63,6 @@ abstract class IOOrFileMethodCall extends DataFlow::CallNode {
|
||||
/** Gets the API used to perform this call, either "IO" or "File" */
|
||||
abstract string getApi();
|
||||
|
||||
/** DEPRECATED: Alias for getApi */
|
||||
deprecated string getAPI() { result = this.getApi() }
|
||||
|
||||
/** Gets a node representing the data read or written by this call */
|
||||
abstract DataFlow::Node getADataNodeImpl();
|
||||
|
||||
@@ -115,9 +112,6 @@ class IOOrFileReadMethodCall extends IOOrFileMethodCall {
|
||||
|
||||
override string getApi() { result = api }
|
||||
|
||||
/** DEPRECATED: Alias for getApi */
|
||||
deprecated override string getAPI() { result = this.getApi() }
|
||||
|
||||
override DataFlow::Node getADataNodeImpl() { result = this }
|
||||
|
||||
override string getReceiverKind() { result = receiverKind }
|
||||
@@ -159,9 +153,6 @@ class IOOrFileWriteMethodCall extends IOOrFileMethodCall {
|
||||
|
||||
override string getApi() { result = api }
|
||||
|
||||
/** DEPRECATED: Alias for getApi */
|
||||
deprecated override string getAPI() { result = this.getApi() }
|
||||
|
||||
override DataFlow::Node getADataNodeImpl() { result = dataNode }
|
||||
|
||||
override string getReceiverKind() { result = receiverKind }
|
||||
|
||||
Reference in New Issue
Block a user