From 76e0170cb9fd5a19583d5dc7edc6c7c42d806e1c Mon Sep 17 00:00:00 2001 From: Aadhavan Srinivasan Date: Sun, 9 Feb 2025 09:13:52 -0500 Subject: [PATCH] Removed unused function --- regex/matching.go | 11 ----------- 1 file changed, 11 deletions(-) diff --git a/regex/matching.go b/regex/matching.go index d9500ce..1b07ee8 100644 --- a/regex/matching.go +++ b/regex/matching.go @@ -28,17 +28,6 @@ func newMatch(size int) Match { return toRet } -// Returns the number of valid groups in the match -func (m Match) numValidGroups() int { - numValid := 0 - for _, g := range m { - if g.StartIdx >= 0 && g.EndIdx >= 0 { - numValid++ - } - } - return numValid -} - // Returns a string containing the indices of all (valid) groups in the match func (m Match) String() string { var toRet string