diff --git a/sessiontxn/interface.go b/sessiontxn/interface.go index 0ad90e3f56815..6969895bbd5a7 100644 --- a/sessiontxn/interface.go +++ b/sessiontxn/interface.go @@ -117,8 +117,6 @@ type TxnContextProvider interface { TxnAdvisable // GetTxnInfoSchema returns the information schema used by txn GetTxnInfoSchema() infoschema.InfoSchema - // SetTxnInfoSchema sets the information schema used by txn. - SetTxnInfoSchema(is infoschema.InfoSchema) // GetTxnScope returns the current txn scope GetTxnScope() string // GetReadReplicaScope returns the read replica scope diff --git a/sessiontxn/isolation/base.go b/sessiontxn/isolation/base.go index 0c0c1be98acad..3fca66f52f123 100644 --- a/sessiontxn/isolation/base.go +++ b/sessiontxn/isolation/base.go @@ -152,10 +152,6 @@ func (p *baseTxnContextProvider) GetTxnInfoSchema() infoschema.InfoSchema { return p.infoSchema } -func (p *baseTxnContextProvider) SetTxnInfoSchema(is infoschema.InfoSchema) { - p.infoSchema = is -} - // GetTxnScope returns the current txn scope func (p *baseTxnContextProvider) GetTxnScope() string { return p.sctx.GetSessionVars().TxnCtx.TxnScope diff --git a/sessiontxn/staleread/provider.go b/sessiontxn/staleread/provider.go index a3734202ee6c5..308ed2b33cbf3 100644 --- a/sessiontxn/staleread/provider.go +++ b/sessiontxn/staleread/provider.go @@ -53,11 +53,6 @@ func (p *StalenessTxnContextProvider) GetTxnInfoSchema() infoschema.InfoSchema { return p.is } -// SetTxnInfoSchema sets the information schema used by txn. -func (p *StalenessTxnContextProvider) SetTxnInfoSchema(is infoschema.InfoSchema) { - p.is = is -} - // GetTxnScope returns the current txn scope func (p *StalenessTxnContextProvider) GetTxnScope() string { return p.sctx.GetSessionVars().TxnCtx.TxnScope