From f67889c2cad9cba505b85081b60b44eef724d47e Mon Sep 17 00:00:00 2001 From: Dane Everitt Date: Sun, 1 Nov 2020 13:17:17 -0800 Subject: [PATCH] Remove unused code --- parser/parser.go | 6 ------ 1 file changed, 6 deletions(-) diff --git a/parser/parser.go b/parser/parser.go index 20bd24f..8e0e5bd 100644 --- a/parser/parser.go +++ b/parser/parser.go @@ -15,7 +15,6 @@ import ( "io/ioutil" "os" "path/filepath" - "regexp" "strconv" "strings" ) @@ -77,11 +76,6 @@ func (f *ConfigurationFile) UnmarshalJSON(data []byte) error { return nil } -// Regex to match paths such as foo[1].bar[2] and convert them into a format that -// gabs can work with, such as foo.1.bar.2 in this case. This is applied when creating -// the struct for the configuration file replacements. -var cfrMatchReplacement = regexp.MustCompile(`\[(\d+)]`) - // Defines a single find/replace instance for a given server configuration file. type ConfigurationFileReplacement struct { Match string `json:"match"`