Skip to content

Commit eff2136

Browse files
committed
Ruby: remove unused predicate
1 parent dead7a8 commit eff2136

File tree

1 file changed

+0
-14
lines changed

1 file changed

+0
-14
lines changed

ruby/ql/lib/codeql/ruby/frameworks/ActionDispatch.qll

Lines changed: 0 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -795,20 +795,6 @@ module ActionDispatch {
795795
bindingset[input]
796796
private string extractAction(string input) { result = input.regexpCapture("[^#]+#(.+)", 1) }
797797

798-
/**
799-
* A basic pluralizer for English strings.
800-
* photo => photos
801-
* story => stories
802-
* TODO: remove?
803-
*/
804-
bindingset[input]
805-
private string pluralize(string input) {
806-
exists(string prefix | prefix = input.regexpCapture("(.*)y", 1) | result = prefix + "ies")
807-
or
808-
not input.regexpMatch(".*y") and
809-
result = input + "s"
810-
}
811-
812798
/**
813799
* The inverse of `pluralize`
814800
* photos => photo

0 commit comments

Comments
 (0)