From b3926ae9e7083354ae6b25a42613cbaa006f05fa Mon Sep 17 00:00:00 2001 From: Kovid Goyal Date: Fri, 6 Jan 2023 16:32:04 +0530 Subject: [PATCH] Remove unused code --- tools/cmd/icat/main.go | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/tools/cmd/icat/main.go b/tools/cmd/icat/main.go index d1f76cde2..fe46c93b6 100644 --- a/tools/cmd/icat/main.go +++ b/tools/cmd/icat/main.go @@ -47,8 +47,6 @@ var transfer_by_file, transfer_by_memory, transfer_by_stream transfer_mode var temp_files_to_delete []string var shm_files_to_delete []shm.MMap -var stderr_is_tty bool -var stream_response string var files_channel chan input_arg var output_channel chan *image_data var num_of_items int @@ -165,7 +163,6 @@ func main(cmd *cli.Command, o *Options, args []string) (rc int, err error) { if err != nil { return 1, err } - stderr_is_tty = tty.IsTerminal(os.Stderr.Fd()) t, err := tty.OpenControllingTerm() if err != nil { return 1, fmt.Errorf("Failed to open controlling terminal with error: %w", err) @@ -220,6 +217,7 @@ func main(cmd *cli.Command, o *Options, args []string) (rc int, err error) { return 1, err } if !direct { + keep_going.Store(false) return 1, fmt.Errorf("This terminal does not support the graphics protocol use a terminal such as kitty, WezTerm or Konsole that does") } if memory {