From f72c9e7aa3f66fb0b5c33a112327eec9690c5809 Mon Sep 17 00:00:00 2001 From: Timon Ringwald Date: Thu, 1 Oct 2020 13:59:38 +0200 Subject: [PATCH] removed logs --- buffer.go | 3 --- write_string.go | 3 --- 2 files changed, 6 deletions(-) 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) } }