From 3c23a061e6baf5f18aeffd18d7ca2b935ab7e273 Mon Sep 17 00:00:00 2001 From: Chao Wang Date: Tue, 26 Mar 2024 16:01:44 +0800 Subject: [PATCH] remove some useless lint --- pkg/ddl/schematracker/info_store.go | 5 ----- 1 file changed, 5 deletions(-) diff --git a/pkg/ddl/schematracker/info_store.go b/pkg/ddl/schematracker/info_store.go index 4eb7619be7099..ad558c2c6f597 100644 --- a/pkg/ddl/schematracker/info_store.go +++ b/pkg/ddl/schematracker/info_store.go @@ -152,28 +152,24 @@ func (i *InfoStore) AllTableNamesOfSchema(schema model.CIStr) ([]string, error) // InfoStoreAdaptor convert InfoStore to InfoSchema, it only implements a part of InfoSchema interface to be // used by DDL interface. -// nolint:unused type InfoStoreAdaptor struct { infoschema.InfoSchema inner *InfoStore } // SchemaByName implements the InfoSchema interface. -// nolint:unused func (i InfoStoreAdaptor) SchemaByName(schema model.CIStr) (*model.DBInfo, bool) { dbInfo := i.inner.SchemaByName(schema) return dbInfo, dbInfo != nil } // TableExists implements the InfoSchema interface. -// nolint:unused func (i InfoStoreAdaptor) TableExists(schema, table model.CIStr) bool { tableInfo, _ := i.inner.TableByName(schema, table) return tableInfo != nil } // TableByName implements the InfoSchema interface. -// nolint:unused func (i InfoStoreAdaptor) TableByName(schema, table model.CIStr) (t table.Table, err error) { tableInfo, err := i.inner.TableByName(schema, table) if err != nil { @@ -183,7 +179,6 @@ func (i InfoStoreAdaptor) TableByName(schema, table model.CIStr) (t table.Table, } // TableInfoByName implements the InfoSchema interface. -// nolint:unused func (i InfoStoreAdaptor) TableInfoByName(schema, table model.CIStr) (*model.TableInfo, error) { return i.inner.TableByName(schema, table) }