Skip to content

Commit accdd94

Browse files
committed
Ruby: drop unused predicates that do not exist in Python variant
1 parent 15801fc commit accdd94

File tree

1 file changed

+0
-6
lines changed

1 file changed

+0
-6
lines changed

ruby/ql/lib/codeql/ruby/regexp/RegExpTreeView.qll

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -750,10 +750,6 @@ class RegExpGroup extends RegExpTerm, TRegExpGroup {
750750
/** Gets the name of this capture group, if any. */
751751
string getName() { result = re.getGroupName(start, end) }
752752

753-
predicate isCharacter() { any() }
754-
755-
string getValue() { result = re.getText().substring(start, end) }
756-
757753
override RegExpTerm getChild(int i) {
758754
result.getRegExp() = re and
759755
i = 0 and
@@ -852,8 +848,6 @@ class RegExpCaret extends RegExpSpecialChar {
852848
class RegExpZeroWidthMatch extends RegExpGroup {
853849
RegExpZeroWidthMatch() { re.zeroWidthMatch(start, end) }
854850

855-
override predicate isCharacter() { any() }
856-
857851
override RegExpTerm getChild(int i) { none() }
858852

859853
override string getAPrimaryQlClass() { result = "RegExpZeroWidthMatch" }

0 commit comments

Comments
 (0)