Skip to content

Commit

Permalink
Remove the GetRegex function from gofrog (#11)
Browse files Browse the repository at this point in the history
  • Loading branch information
AlexeiVainshtein authored Jan 10, 2019
1 parent a477150 commit 6b614ac
Showing 1 changed file with 0 additions and 9 deletions.
9 changes: 0 additions & 9 deletions io/cmd.go
Original file line number Diff line number Diff line change
Expand Up @@ -145,15 +145,6 @@ type CmdConfig interface {
GetErrWriter() io.WriteCloser
}

func GetRegExp(regex string) (*regexp.Regexp, error) {
regExp, err := regexp.Compile(regex)
if err != nil {
return nil, err
}

return regExp, nil
}

// RegExp - The regexp that the line will be searched upon.
// MatchedResults - The slice result that was found by the regex
// Line - The output line from the external process
Expand Down

0 comments on commit 6b614ac

Please sign in to comment.