refact(cleanup): Removing deadcode from the repo (#323)

Signed-off-by: Sonia Singla <soniasingla.1812@gmail.com>
This commit is contained in:
Sonia Singla 2021-05-04 23:05:14 +05:30 committed by GitHub
parent 0ebab22224
commit 62b3a0b7fe
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -57,15 +57,3 @@ func IsNil() Predicate {
// PredicateList holds a list of predicate // PredicateList holds a list of predicate
type PredicateList []Predicate type PredicateList []Predicate
// all returns true if all the predicates
// succeed against the provided pvc
// instance
func (l PredicateList) all(v *Volume) bool {
for _, pred := range l {
if !pred(v) {
return false
}
}
return true
}