Skip to content

Database governance built for humans and agents — controlling changes and access across every major database.

chore: remove unused (#6124)

p0ny5cb5b3bb7a3d
diff --git a/backend/legacyapi/task_check_run.go b/backend/legacyapi/task_check_run.go
index 48e1c1ca54..66757aeade 100644
--- a/backend/legacyapi/task_check_run.go
+++ b/backend/legacyapi/task_check_run.go
@@ -79,11 +79,6 @@ const (
TaskCheckPITRMySQL TaskCheckType = "bb.task-check.pitr.mysql"
)
-// TaskCheckEarliestAllowedTimePayload is the task check payload for earliest allowed time.
-type TaskCheckEarliestAllowedTimePayload struct {
- EarliestAllowedTs int64 `json:"earliestAllowedTs,omitempty"`
-}
-
// Namespace is the namespace for task check result.
type Namespace string
diff --git a/backend/store/instance_change_history.go b/backend/store/instance_change_history.go
index 664358f09e..4796a99caf 100644
--- a/backend/store/instance_change_history.go
+++ b/backend/store/instance_change_history.go
@@ -510,32 +510,3 @@ func (s *Store) CreatePendingInstanceChangeHistory(ctx context.Context, prevSche
return list[0].ID, nil
}
-
-// ListInstanceHavingInstanceChangeHistory finds the instance id lists that have instance change history.
-func (s *Store) ListInstanceHavingInstanceChangeHistory(ctx context.Context) ([]int, error) {
- query := `
- SELECT DISTINCT
- instance_id
- FROM instance_change_history
- WHERE instance_id IS NOT NULL
- `
- rows, err := s.db.db.QueryContext(ctx, query)
- if err != nil {
- return nil, err
- }
- defer rows.Close()
-
- var list []int
- for rows.Next() {
- var id int
- if err := rows.Scan(&id); err != nil {
- return nil, err
- }
- list = append(list, id)
- }
- if err := rows.Err(); err != nil {
- return nil, err
- }
-
- return list, nil
-}