diff --git a/pkg/object/search.go b/pkg/object/search.go index 6c596d62..2a835baa 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 e0e750a0..0777e968 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 (