Remove unused code
This commit is contained in:
parent
57ef0e29c0
commit
9919767aef
@ -9,7 +9,6 @@ import (
|
|||||||
"strings"
|
"strings"
|
||||||
|
|
||||||
"kitty/tools/config"
|
"kitty/tools/config"
|
||||||
"kitty/tools/tty"
|
|
||||||
"kitty/tools/tui"
|
"kitty/tools/tui"
|
||||||
"kitty/tools/tui/graphics"
|
"kitty/tools/tui/graphics"
|
||||||
"kitty/tools/tui/loop"
|
"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) {
|
func (self *Handler) update_screen_size(sz loop.ScreenSize) {
|
||||||
self.screen_size.rows = int(sz.HeightCells)
|
self.screen_size.rows = int(sz.HeightCells)
|
||||||
self.screen_size.columns = int(sz.WidthCells)
|
self.screen_size.columns = int(sz.WidthCells)
|
||||||
|
|||||||
@ -6,13 +6,11 @@ import (
|
|||||||
"fmt"
|
"fmt"
|
||||||
|
|
||||||
"kitty/tools/themes"
|
"kitty/tools/themes"
|
||||||
"kitty/tools/tty"
|
|
||||||
"kitty/tools/utils"
|
"kitty/tools/utils"
|
||||||
"kitty/tools/wcswidth"
|
"kitty/tools/wcswidth"
|
||||||
)
|
)
|
||||||
|
|
||||||
var _ = fmt.Print
|
var _ = fmt.Print
|
||||||
var DebugPrintln = tty.DebugPrintln
|
|
||||||
|
|
||||||
type ThemesList struct {
|
type ThemesList struct {
|
||||||
themes, all_themes *themes.Themes
|
themes, all_themes *themes.Themes
|
||||||
|
|||||||
@ -21,7 +21,6 @@ import (
|
|||||||
|
|
||||||
"kitty/tools/cli"
|
"kitty/tools/cli"
|
||||||
"kitty/tools/config"
|
"kitty/tools/config"
|
||||||
"kitty/tools/tty"
|
|
||||||
"kitty/tools/tui/loop"
|
"kitty/tools/tui/loop"
|
||||||
"kitty/tools/tui/subseq"
|
"kitty/tools/tui/subseq"
|
||||||
"kitty/tools/utils"
|
"kitty/tools/utils"
|
||||||
@ -34,7 +33,6 @@ import (
|
|||||||
)
|
)
|
||||||
|
|
||||||
var _ = fmt.Print
|
var _ = fmt.Print
|
||||||
var DebugPrintln = tty.DebugPrintln
|
|
||||||
|
|
||||||
var AllColorSettingNames = map[string]bool{ // {{{
|
var AllColorSettingNames = map[string]bool{ // {{{
|
||||||
// generated by gen-config.py do not edit
|
// generated by gen-config.py do not edit
|
||||||
|
|||||||
@ -10,7 +10,6 @@ import (
|
|||||||
"sync"
|
"sync"
|
||||||
"sync/atomic"
|
"sync/atomic"
|
||||||
|
|
||||||
"kitty/tools/tty"
|
|
||||||
"kitty/tools/tui"
|
"kitty/tools/tui"
|
||||||
"kitty/tools/tui/loop"
|
"kitty/tools/tui/loop"
|
||||||
"kitty/tools/utils"
|
"kitty/tools/utils"
|
||||||
@ -226,8 +225,6 @@ func (self *ImageCollection) Finalize(lp *loop.Loop) {
|
|||||||
self.images = nil
|
self.images = nil
|
||||||
}
|
}
|
||||||
|
|
||||||
var DebugPrintln = tty.DebugPrintln
|
|
||||||
|
|
||||||
func (self *ImageCollection) mark_img_as_needing_transmission(id uint32) bool {
|
func (self *ImageCollection) mark_img_as_needing_transmission(id uint32) bool {
|
||||||
self.mutex.Lock()
|
self.mutex.Lock()
|
||||||
defer self.mutex.Unlock()
|
defer self.mutex.Unlock()
|
||||||
|
|||||||
@ -7,7 +7,6 @@ import (
|
|||||||
"strconv"
|
"strconv"
|
||||||
"strings"
|
"strings"
|
||||||
|
|
||||||
"kitty/tools/tty"
|
|
||||||
"kitty/tools/utils"
|
"kitty/tools/utils"
|
||||||
)
|
)
|
||||||
|
|
||||||
@ -112,8 +111,6 @@ func pixel_to_cell(px, length, cell_length int) int {
|
|||||||
return px / cell_length
|
return px / cell_length
|
||||||
}
|
}
|
||||||
|
|
||||||
var DebugPrintln = tty.DebugPrintln
|
|
||||||
|
|
||||||
func decode_sgr_mouse(text string, screen_size ScreenSize) *MouseEvent {
|
func decode_sgr_mouse(text string, screen_size ScreenSize) *MouseEvent {
|
||||||
last_letter := text[len(text)-1]
|
last_letter := text[len(text)-1]
|
||||||
text = text[:len(text)-1]
|
text = text[:len(text)-1]
|
||||||
|
|||||||
@ -9,7 +9,6 @@ import (
|
|||||||
"io"
|
"io"
|
||||||
"os"
|
"os"
|
||||||
"os/signal"
|
"os/signal"
|
||||||
"runtime/debug"
|
|
||||||
"time"
|
"time"
|
||||||
|
|
||||||
"golang.org/x/sys/unix"
|
"golang.org/x/sys/unix"
|
||||||
@ -48,10 +47,6 @@ func kill_self(sig unix.Signal) {
|
|||||||
time.Sleep(20 * time.Millisecond)
|
time.Sleep(20 * time.Millisecond)
|
||||||
}
|
}
|
||||||
|
|
||||||
func (self *Loop) print_stack() {
|
|
||||||
self.DebugPrintln(string(debug.Stack()))
|
|
||||||
}
|
|
||||||
|
|
||||||
func (self *Loop) update_screen_size() error {
|
func (self *Loop) update_screen_size() error {
|
||||||
if self.controlling_term == nil {
|
if self.controlling_term == nil {
|
||||||
return fmt.Errorf("No controlling terminal cannot update screen size")
|
return fmt.Errorf("No controlling terminal cannot update screen size")
|
||||||
|
|||||||
@ -6,7 +6,6 @@ import (
|
|||||||
"fmt"
|
"fmt"
|
||||||
"time"
|
"time"
|
||||||
|
|
||||||
"kitty/tools/tty"
|
|
||||||
"kitty/tools/tui/loop"
|
"kitty/tools/tui/loop"
|
||||||
"kitty/tools/utils"
|
"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) {
|
func (ms *MouseSelection) LineBounds(line_pos LinePos) (start_x, end_x int) {
|
||||||
if ms.IsEmpty() {
|
if ms.IsEmpty() {
|
||||||
return -1, -1
|
return -1, -1
|
||||||
|
|||||||
@ -7,7 +7,6 @@ import (
|
|||||||
"strings"
|
"strings"
|
||||||
|
|
||||||
"kitty/tools/cli"
|
"kitty/tools/cli"
|
||||||
"kitty/tools/tty"
|
|
||||||
"kitty/tools/utils"
|
"kitty/tools/utils"
|
||||||
"kitty/tools/wcswidth"
|
"kitty/tools/wcswidth"
|
||||||
)
|
)
|
||||||
@ -64,8 +63,6 @@ type completions struct {
|
|||||||
current completion
|
current completion
|
||||||
}
|
}
|
||||||
|
|
||||||
var _ = tty.DebugPrintln
|
|
||||||
|
|
||||||
func (self *Readline) complete(forwards bool, repeat_count uint) bool {
|
func (self *Readline) complete(forwards bool, repeat_count uint) bool {
|
||||||
c := &self.completions
|
c := &self.completions
|
||||||
if c.completer == nil {
|
if c.completer == nil {
|
||||||
|
|||||||
@ -11,7 +11,6 @@ import (
|
|||||||
"time"
|
"time"
|
||||||
|
|
||||||
"kitty/tools/cli"
|
"kitty/tools/cli"
|
||||||
"kitty/tools/tty"
|
|
||||||
"kitty/tools/utils"
|
"kitty/tools/utils"
|
||||||
"kitty/tools/utils/shlex"
|
"kitty/tools/utils/shlex"
|
||||||
"kitty/tools/wcswidth"
|
"kitty/tools/wcswidth"
|
||||||
@ -399,8 +398,6 @@ func (self *Readline) history_search_prompt() string {
|
|||||||
return fmt.Sprintf("history %s: ", ans)
|
return fmt.Sprintf("history %s: ", ans)
|
||||||
}
|
}
|
||||||
|
|
||||||
var _ = tty.DebugPrintln
|
|
||||||
|
|
||||||
func (self *Readline) history_completer(before_cursor, after_cursor string) (ans *cli.Completions) {
|
func (self *Readline) history_completer(before_cursor, after_cursor string) (ans *cli.Completions) {
|
||||||
ans = cli.NewCompletions()
|
ans = cli.NewCompletions()
|
||||||
if before_cursor != "" {
|
if before_cursor != "" {
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user