summaryrefslogtreecommitdiffstats
path: root/vendor/xorm.io/builder/cond.go
diff options
context:
space:
mode:
Diffstat (limited to 'vendor/xorm.io/builder/cond.go')
-rw-r--r--vendor/xorm.io/builder/cond.go36
1 files changed, 0 insertions, 36 deletions
diff --git a/vendor/xorm.io/builder/cond.go b/vendor/xorm.io/builder/cond.go
index e44173bbd5..149f5d8cf7 100644
--- a/vendor/xorm.io/builder/cond.go
+++ b/vendor/xorm.io/builder/cond.go
@@ -4,42 +4,6 @@
package builder
-import (
- "io"
-)
-
-// Writer defines the interface
-type Writer interface {
- io.Writer
- Append(...interface{})
-}
-
-var _ Writer = NewWriter()
-
-// BytesWriter implments Writer and save SQL in bytes.Buffer
-type BytesWriter struct {
- writer *StringBuilder
- args []interface{}
-}
-
-// NewWriter creates a new string writer
-func NewWriter() *BytesWriter {
- w := &BytesWriter{
- writer: &StringBuilder{},
- }
- return w
-}
-
-// Write writes data to Writer
-func (s *BytesWriter) Write(buf []byte) (int, error) {
- return s.writer.Write(buf)
-}
-
-// Append appends args to Writer
-func (s *BytesWriter) Append(args ...interface{}) {
- s.args = append(s.args, args...)
-}
-
// Cond defines an interface
type Cond interface {
WriteTo(Writer) error