[#209] object: Remove childfree search attribute

Signed-off-by: Alex Vanin <alexey@nspcc.ru>
This commit is contained in:
Alex Vanin 2020-11-25 16:31:48 +03:00 committed by Alex Vanin
parent 6b0bd42f25
commit 79c76e87e4
2 changed files with 0 additions and 18 deletions

View file

@ -72,7 +72,6 @@ const (
fKeyParent fKeyParent
fKeyPropRoot fKeyPropRoot
fKeyPropPhy fKeyPropPhy
fKeyPropChildfree
) )
func (k filterKey) String() string { func (k filterKey) String() string {
@ -103,8 +102,6 @@ func (k filterKey) String() string {
return v2object.FilterPropertyRoot return v2object.FilterPropertyRoot
case fKeyPropPhy: case fKeyPropPhy:
return v2object.FilterPropertyPhy return v2object.FilterPropertyPhy
case fKeyPropChildfree:
return v2object.FilterPropertyChildfree
} }
} }
@ -227,18 +224,6 @@ func (f *SearchFilters) AddPhyFilter() {
f.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) { func (f *SearchFilters) AddParentIDFilter(m SearchMatchType, id *ID) {
f.addReservedFilter(m, fKeyParent, id) f.addReservedFilter(m, fKeyParent, id)
} }

View file

@ -41,9 +41,6 @@ const (
// FilterPropertyPhy is a filter key to check if an object physically stored on a node. // FilterPropertyPhy is a filter key to check if an object physically stored on a node.
FilterPropertyPhy = ReservedFilterPrefix + "PHY" FilterPropertyPhy = ReservedFilterPrefix + "PHY"
// FilterPropertyChildfree is a filter key to check if an object has empty children list in `Split` header.
FilterPropertyChildfree = ReservedFilterPrefix + "CHILDFREE"
) )
const ( const (