diff --git a/buffer.go b/buffer.go index 6726aaf..6425b0d 100644 --- a/buffer.go +++ b/buffer.go @@ -1,7 +1,6 @@ package buf2d import ( - "fmt" "strings" ) @@ -96,8 +95,6 @@ func (b *Buffer) Sub(x, y, w, h int) *Buffer { data[dy] = col[x : x+w] } - fmt.Println(data) - // make buffer return &Buffer{ data: data, diff --git a/write_string.go b/write_string.go index 8424846..81858c7 100644 --- a/write_string.go +++ b/write_string.go @@ -1,7 +1,5 @@ package buf2d -import "fmt" - // WriteString writes a whole string to the buffer at position (x,y) // no word wrap is applied at all. If the string does not fit, it will be truncated func (b *Buffer) WriteString(str string, x, y int) { @@ -9,7 +7,6 @@ func (b *Buffer) WriteString(str string, x, y int) { if x+dx >= b.width { return } - fmt.Println(x+dx, y, string(r)) b.Set(x+dx, y, r) } }