Update godep in vendor

This commit is contained in:
Christoph Blecker
2018-04-02 12:57:41 -07:00
parent ba71e6307a
commit 0828b19996
21 changed files with 70 additions and 133 deletions

View File

@@ -25,10 +25,6 @@ type Godeps struct {
isOldFile bool
}
func createGodepsFile() (*os.File, error) {
return os.Create(godepsFile)
}
func loadGodepsFile(path string) (Godeps, error) {
var g Godeps
f, err := os.Open(path)
@@ -201,9 +197,7 @@ func (g *Godeps) addOrUpdateDeps(deps []Dependency) {
missing = append(missing, d)
}
}
for _, d := range missing {
g.Deps = append(g.Deps, d)
}
g.Deps = append(g.Deps, missing...)
}
func (g *Godeps) removeDeps(deps []Dependency) {