Remove unused code

This commit is contained in:
Kovid Goyal
2023-03-30 10:26:39 +05:30
parent 57ef0e29c0
commit 9919767aef
9 changed files with 0 additions and 27 deletions

View File

@@ -7,7 +7,6 @@ import (
"strconv"
"strings"
"kitty/tools/tty"
"kitty/tools/utils"
)
@@ -112,8 +111,6 @@ func pixel_to_cell(px, length, cell_length int) int {
return px / cell_length
}
var DebugPrintln = tty.DebugPrintln
func decode_sgr_mouse(text string, screen_size ScreenSize) *MouseEvent {
last_letter := text[len(text)-1]
text = text[:len(text)-1]

View File

@@ -9,7 +9,6 @@ import (
"io"
"os"
"os/signal"
"runtime/debug"
"time"
"golang.org/x/sys/unix"
@@ -48,10 +47,6 @@ func kill_self(sig unix.Signal) {
time.Sleep(20 * time.Millisecond)
}
func (self *Loop) print_stack() {
self.DebugPrintln(string(debug.Stack()))
}
func (self *Loop) update_screen_size() error {
if self.controlling_term == nil {
return fmt.Errorf("No controlling terminal cannot update screen size")