Skip to content

Commit

Permalink
cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
xt0fer committed Nov 26, 2018
1 parent cd26dbe commit 6615842
Showing 1 changed file with 8 additions and 9 deletions.
17 changes: 8 additions & 9 deletions buffer.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@ package kg
import (
"errors"
"fmt"
"runtime"
)

// Buffer main struct
Expand Down Expand Up @@ -61,14 +60,14 @@ func (bp *Buffer) GetText() string {
}

func (bp *Buffer) logBufferEOB(pt int) {
if bp.EndOfBuffer(pt) == true {
pc, file, no, ok := runtime.Caller(1)
details := runtime.FuncForPC(pc)
if ok && details != nil {
// log.Printf(">>Called from %s\n>> %s Ln# %d\n", details.Name(), file, no)
}
// log.Println(">>Setting Point to EOB", pt, bp.BufferLen())
}
// if bp.EndOfBuffer(pt) == true {
// pc, file, no, ok := runtime.Caller(1)
// details := runtime.FuncForPC(pc)
// if ok && details != nil {
// // log.Printf(">>Called from %s\n>> %s Ln# %d\n", details.Name(), file, no)
// }
// // log.Println(">>Setting Point to EOB", pt, bp.BufferLen())
// }
}

// RuneAt finally reliable!!
Expand Down

0 comments on commit 6615842

Please sign in to comment.