From 0d082cdf53836f23bba54a54c04d0440f4fc4462 Mon Sep 17 00:00:00 2001 From: Aliaksandr Valialkin Date: Tue, 29 Sep 2020 11:54:56 +0300 Subject: [PATCH] app/vmselect/netstorage: remove unused code --- app/vmselect/netstorage/netstorage.go | 16 ---------------- 1 file changed, 16 deletions(-) diff --git a/app/vmselect/netstorage/netstorage.go b/app/vmselect/netstorage/netstorage.go index 8d563128ae..7c1c8c5095 100644 --- a/app/vmselect/netstorage/netstorage.go +++ b/app/vmselect/netstorage/netstorage.go @@ -1047,22 +1047,6 @@ func ExportBlocks(at *auth.Token, sq *storage.SearchQuery, deadline searchutils. return isPartialResult, nil } -type exportWork struct { - mn storage.MetricName - b storage.Block -} - -func (xw *exportWork) reset() { - xw.mn.Reset() - xw.b.Reset() -} - -var exportWorkPool = &sync.Pool{ - New: func() interface{} { - return &exportWork{} - }, -} - // ProcessSearchQuery performs sq until the given deadline. // // Results.RunParallel or Results.Cancel must be called on the returned Results.