// RemoveFilterByIndex remove the filter by the index
RemoveFilterByIndex remove the filter by the index
// RemoveFilterByIndex remove the filter by the index
func (fm *filterManager) RemoveFilterByIndex(index int) {
	fm.fmLocker.Lock()
	n := len(fm.filters)
	if index < 0 && index >= n {
		fm.fmLocker.Unlock()
		return
	}
	if index == n-1 {
		fm.filters = fm.filters[:index]
	} else {
		fm.filters = append(fm.filters[:index], fm.filters[index+1:]...)
	}
	fm.fmLocker.Unlock()
}
func ( fm * filterManager ) RemoveFilterByIndex ( index int ) { fm . fmLocker . Lock ( ) n := len ( fm . filters ) if index < 0 && index >= n { fm . fmLocker . Unlock ( ) return } if index == n - 1 { fm . filters = fm . filters [ : index ] } else { fm . filters = append ( fm . filters [ : index ] , fm . filters [ index + 1 : ] ... ) } fm . fmLocker . Unlock ( ) }
RemoveFilterByIndex remove the filter by the index
RemoveFilterByIndex remove the filter by the index