Skip to content

Commit

Permalink
statistics: remove useless function
Browse files Browse the repository at this point in the history
Signed-off-by: Weizhen Wang <[email protected]>
  • Loading branch information
hawkingrei committed Sep 3, 2024
1 parent 0583e84 commit 5373eaa
Showing 1 changed file with 0 additions and 19 deletions.
19 changes: 0 additions & 19 deletions pkg/statistics/table.go
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down

0 comments on commit 5373eaa

Please sign in to comment.