Skip to content

Commit 97f90cd

Browse files
jetjet
authored andcommitted
delete no use code
1 parent f2d480c commit 97f90cd

23 files changed

+3
-6898
lines changed

backend/backend_conn.go

Lines changed: 0 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -304,14 +304,6 @@ func (c *Conn) writeCommand(command byte) error {
304304
})
305305
}
306306

307-
func (c *Conn) SendRawBytes(raw []byte) error {
308-
return c.pkg.WriteRawBytes(raw)
309-
}
310-
311-
func (c *Conn) ReadRawBytes() ([]byte, error) {
312-
return c.pkg.ReadRawBytes()
313-
}
314-
315307
func (c *Conn) writeCommandBuf(command byte, arg []byte) error {
316308
c.pkg.Sequence = 0
317309

@@ -408,21 +400,6 @@ func (c *Conn) GetAddr() string {
408400
return c.addr
409401
}
410402

411-
func (c *Conn) Execute(command string, args ...interface{}) (*mysql.Result, error) {
412-
if len(args) == 0 {
413-
return c.exec(command)
414-
} else {
415-
if s, err := c.Prepare(command); err != nil {
416-
return nil, err
417-
} else {
418-
var r *mysql.Result
419-
r, err = s.Execute(args...)
420-
s.Close()
421-
return r, err
422-
}
423-
}
424-
}
425-
426403
func (c *Conn) ClosePrepare(id uint32) error {
427404
return c.writeCommandUint32(mysql.COM_STMT_CLOSE, id)
428405
}

backend/stmt.go

Lines changed: 0 additions & 233 deletions
This file was deleted.

0 commit comments

Comments
 (0)