Skip to content

Commit 45e30b0

Browse files
committed
Python: comment out temporarily unused predicate
1 parent c306cee commit 45e30b0

File tree

1 file changed

+12
-12
lines changed

1 file changed

+12
-12
lines changed

python/ql/src/semmle/python/RegexTreeView.qll

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -479,18 +479,18 @@ class RegExpEscape extends RegExpNormalChar {
479479
// )
480480
none()
481481
}
482-
483-
/**
484-
* Gets int value for the `index`th char in the hex number of the unicode escape.
485-
* E.g. for `\u0061` and `index = 2` this returns 96 (the number `6` interpreted as hex).
486-
*/
487-
private int getHexValueFromUnicode(int index) {
488-
isUnicode() and
489-
exists(string hex, string char | hex = getText().suffix(2) |
490-
char = hex.charAt(index) and
491-
result = 16.pow(hex.length() - index - 1) * toHex(char)
492-
)
493-
}
482+
// TODO: Enable this once a supporting CLI is released.
483+
// /**
484+
// * Gets int value for the `index`th char in the hex number of the unicode escape.
485+
// * E.g. for `\u0061` and `index = 2` this returns 96 (the number `6` interpreted as hex).
486+
// */
487+
// private int getHexValueFromUnicode(int index) {
488+
// isUnicode() and
489+
// exists(string hex, string char | hex = getText().suffix(2) |
490+
// char = hex.charAt(index) and
491+
// result = 16.pow(hex.length() - index - 1) * toHex(char)
492+
// )
493+
// }
494494
}
495495

496496
/**

0 commit comments

Comments
 (0)