Remove unused code

This commit is contained in:
Kovid Goyal 2023-03-30 10:26:39 +05:30
parent 57ef0e29c0
commit 9919767aef
No known key found for this signature in database
GPG Key ID: 06BC317B515ACE7C
9 changed files with 0 additions and 27 deletions

View File

@ -9,7 +9,6 @@ import (
"strings"
"kitty/tools/config"
"kitty/tools/tty"
"kitty/tools/tui"
"kitty/tools/tui/graphics"
"kitty/tools/tui/loop"
@ -86,8 +85,6 @@ func (self *Handler) calculate_statistics() {
}
}
var DebugPrintln = tty.DebugPrintln
func (self *Handler) update_screen_size(sz loop.ScreenSize) {
self.screen_size.rows = int(sz.HeightCells)
self.screen_size.columns = int(sz.WidthCells)

View File

@ -6,13 +6,11 @@ import (
"fmt"
"kitty/tools/themes"
"kitty/tools/tty"
"kitty/tools/utils"
"kitty/tools/wcswidth"
)
var _ = fmt.Print
var DebugPrintln = tty.DebugPrintln
type ThemesList struct {
themes, all_themes *themes.Themes

View File

@ -21,7 +21,6 @@ import (
"kitty/tools/cli"
"kitty/tools/config"
"kitty/tools/tty"
"kitty/tools/tui/loop"
"kitty/tools/tui/subseq"
"kitty/tools/utils"
@ -34,7 +33,6 @@ import (
)
var _ = fmt.Print
var DebugPrintln = tty.DebugPrintln
var AllColorSettingNames = map[string]bool{ // {{{
// generated by gen-config.py do not edit

View File

@ -10,7 +10,6 @@ import (
"sync"
"sync/atomic"
"kitty/tools/tty"
"kitty/tools/tui"
"kitty/tools/tui/loop"
"kitty/tools/utils"
@ -226,8 +225,6 @@ func (self *ImageCollection) Finalize(lp *loop.Loop) {
self.images = nil
}
var DebugPrintln = tty.DebugPrintln
func (self *ImageCollection) mark_img_as_needing_transmission(id uint32) bool {
self.mutex.Lock()
defer self.mutex.Unlock()

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")

View File

@ -6,7 +6,6 @@ import (
"fmt"
"time"
"kitty/tools/tty"
"kitty/tools/tui/loop"
"kitty/tools/utils"
)
@ -86,8 +85,6 @@ func (ms *MouseSelection) Update(ev *loop.MouseEvent, line LinePos) {
}
}
var DebugPrintln = tty.DebugPrintln
func (ms *MouseSelection) LineBounds(line_pos LinePos) (start_x, end_x int) {
if ms.IsEmpty() {
return -1, -1

View File

@ -7,7 +7,6 @@ import (
"strings"
"kitty/tools/cli"
"kitty/tools/tty"
"kitty/tools/utils"
"kitty/tools/wcswidth"
)
@ -64,8 +63,6 @@ type completions struct {
current completion
}
var _ = tty.DebugPrintln
func (self *Readline) complete(forwards bool, repeat_count uint) bool {
c := &self.completions
if c.completer == nil {

View File

@ -11,7 +11,6 @@ import (
"time"
"kitty/tools/cli"
"kitty/tools/tty"
"kitty/tools/utils"
"kitty/tools/utils/shlex"
"kitty/tools/wcswidth"
@ -399,8 +398,6 @@ func (self *Readline) history_search_prompt() string {
return fmt.Sprintf("history %s: ", ans)
}
var _ = tty.DebugPrintln
func (self *Readline) history_completer(before_cursor, after_cursor string) (ans *cli.Completions) {
ans = cli.NewCompletions()
if before_cursor != "" {