From 5373eaa58277bce6d102c448da723efa4bb831f1 Mon Sep 17 00:00:00 2001 From: Weizhen Wang Date: Tue, 3 Sep 2024 15:29:10 +0800 Subject: [PATCH] statistics: remove useless function Signed-off-by: Weizhen Wang --- pkg/statistics/table.go | 19 ------------------- 1 file changed, 19 deletions(-) diff --git a/pkg/statistics/table.go b/pkg/statistics/table.go index 5f4d8f705e8f9..5ee6378cc0cd5 100644 --- a/pkg/statistics/table.go +++ b/pkg/statistics/table.go @@ -92,25 +92,6 @@ type ColAndIdxExistenceMap struct { idxAnalyzed map[int64]bool } -// SomeAnalyzed checks whether some part of the table is analyzed. -// The newly added column/index might not have its stats. -func (m *ColAndIdxExistenceMap) SomeAnalyzed() bool { - if m == nil { - return false - } - for _, v := range m.colAnalyzed { - if v { - return true - } - } - for _, v := range m.idxAnalyzed { - if v { - return true - } - } - return false -} - // Has checks whether a column/index stats exists. // This method only checks whether the given item exists or not. // Don't check whether it has statistics or not.