From 79c76e87e43f253b7721552a32c567dfe8df54e0 Mon Sep 17 00:00:00 2001 From: Alex Vanin Date: Wed, 25 Nov 2020 16:31:48 +0300 Subject: [PATCH] [#209] object: Remove `childfree` search attribute Signed-off-by: Alex Vanin --- pkg/object/search.go | 15 --------------- v2/object/filters.go | 3 --- 2 files changed, 18 deletions(-) diff --git a/pkg/object/search.go b/pkg/object/search.go index 6c596d6..2a835ba 100644 --- a/pkg/object/search.go +++ b/pkg/object/search.go @@ -72,7 +72,6 @@ const ( fKeyParent fKeyPropRoot fKeyPropPhy - fKeyPropChildfree ) func (k filterKey) String() string { @@ -103,8 +102,6 @@ func (k filterKey) String() string { return v2object.FilterPropertyRoot case fKeyPropPhy: return v2object.FilterPropertyPhy - case fKeyPropChildfree: - return v2object.FilterPropertyChildfree } } @@ -227,18 +224,6 @@ func (f *SearchFilters) AddPhyFilter() { f.addPhyFilter() } -func (f *SearchFilters) addChildFreeFilter(val bool) { - f.addReservedFilter(MatchStringEqual, fKeyPropChildfree, boolStringer(val)) -} - -func (f *SearchFilters) AddChildfreeFilter() { - f.addChildFreeFilter(true) -} - -func (f *SearchFilters) AddNonChildfreeFilter() { - f.addChildFreeFilter(false) -} - func (f *SearchFilters) AddParentIDFilter(m SearchMatchType, id *ID) { f.addReservedFilter(m, fKeyParent, id) } diff --git a/v2/object/filters.go b/v2/object/filters.go index e0e750a..0777e96 100644 --- a/v2/object/filters.go +++ b/v2/object/filters.go @@ -41,9 +41,6 @@ const ( // FilterPropertyPhy is a filter key to check if an object physically stored on a node. FilterPropertyPhy = ReservedFilterPrefix + "PHY" - - // FilterPropertyChildfree is a filter key to check if an object has empty children list in `Split` header. - FilterPropertyChildfree = ReservedFilterPrefix + "CHILDFREE" ) const (