From 0fad02e45de805a0f5ba14c6b385cda5e23c3bf2 Mon Sep 17 00:00:00 2001 From: Carolyn Van Slyck Date: Fri, 5 May 2017 10:44:05 -0500 Subject: [PATCH] Remove unused function isEmpty --- manifest.go | 11 +---------- 1 file changed, 1 insertion(+), 10 deletions(-) diff --git a/manifest.go b/manifest.go index a30b826db8..621edf1a6a 100644 --- a/manifest.go +++ b/manifest.go @@ -5,11 +5,10 @@ package dep import ( + "bytes" "io" "sort" - "bytes" - "github.com/golang/dep/gps" "github.com/pelletier/go-toml" "github.com/pkg/errors" @@ -140,14 +139,6 @@ func (m *Manifest) toRaw() rawManifest { return raw } -// IsEmpty - Checks if payload is empty -func (m *Manifest) IsEmpty() bool { - if len(m.Ovr) == 0 && len(m.Ignored) == 0 && len(m.Dependencies) == 0 && len(m.Required) == 0 { - return true - } - return false -} - type sortedRawProjects []rawProject func (s sortedRawProjects) Len() int { return len(s) }