Remove unused code
This commit is contained in:
parent
b8766d3c82
commit
f67889c2ca
|
@ -15,7 +15,6 @@ import (
|
||||||
"io/ioutil"
|
"io/ioutil"
|
||||||
"os"
|
"os"
|
||||||
"path/filepath"
|
"path/filepath"
|
||||||
"regexp"
|
|
||||||
"strconv"
|
"strconv"
|
||||||
"strings"
|
"strings"
|
||||||
)
|
)
|
||||||
|
@ -77,11 +76,6 @@ func (f *ConfigurationFile) UnmarshalJSON(data []byte) error {
|
||||||
return nil
|
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.
|
// Defines a single find/replace instance for a given server configuration file.
|
||||||
type ConfigurationFileReplacement struct {
|
type ConfigurationFileReplacement struct {
|
||||||
Match string `json:"match"`
|
Match string `json:"match"`
|
||||||
|
|
Loading…
Reference in New Issue
Block a user