From 05881db492010a9c4c2ae6f35da50a8e805b3890 Mon Sep 17 00:00:00 2001 From: Kovid Goyal Date: Wed, 28 Feb 2024 12:15:20 +0530 Subject: [PATCH] Remove unused code --- kittens/icat/main.go | 3 --- 1 file changed, 3 deletions(-) diff --git a/kittens/icat/main.go b/kittens/icat/main.go index c73daacc6..265281c9d 100644 --- a/kittens/icat/main.go +++ b/kittens/icat/main.go @@ -182,9 +182,6 @@ func main(cmd *cli.Command, o *Options, args []string) (rc int, err error) { return 1, fmt.Errorf("Invalid size specification: %s with error: %w", opts.UseWindowSize, err) } screen_size.Ypixel = uint16(t) - if screen_size.Xpixel == 0 || screen_size.Ypixel == 0 { - return 1, fmt.Errorf("zero is not allowed for screen pixel size") - } } if opts.PrintWindowSize {