refactor: remove dead code

This commit is contained in:
sh0rez 2019-10-29 22:08:31 +01:00
parent 0588b89c07
commit 1caefa556e
No known key found for this signature in database
GPG key ID: 87C71DF9F8181FF1
3 changed files with 0 additions and 99 deletions

View file

@ -32,28 +32,6 @@ const (
var ErrNoFile = errors.New("no jsonnetfile")
func Choose(dir string) (string, bool, error) {
jsonnetfileLock := filepath.Join(dir, LockFile)
jsonnetfile := filepath.Join(dir, File)
lockExists, err := Exists(jsonnetfileLock)
if err != nil {
return "", false, err
}
if lockExists {
return jsonnetfileLock, true, nil
}
fileExists, err := Exists(jsonnetfile)
if err != nil {
return "", false, err
}
if fileExists {
return jsonnetfile, false, nil
}
return "", false, ErrNoFile
}
func Load(filepath string) (spec.JsonnetFile, error) {
m := spec.JsonnetFile{}