From 9451863c968aaa19a175aa6ff42c099b8fe7d908 Mon Sep 17 00:00:00 2001 From: bptato Date: Thu, 7 Sep 2023 19:43:26 +0200 Subject: container: remove attrs It was unused; we just set the width and height instead. --- src/buffer/container.nim | 3 --- 1 file changed, 3 deletions(-) (limited to 'src/buffer') diff --git a/src/buffer/container.nim b/src/buffer/container.nim index e5d2b700..44a1c99c 100644 --- a/src/buffer/container.nim +++ b/src/buffer/container.nim @@ -70,7 +70,6 @@ type children* {.jsget.}: seq[Container] config*: BufferConfig iface*: BufferInterface - attrs: WindowAttributes width* {.jsget.}: int height* {.jsget.}: int title*: string # used in status msg @@ -116,7 +115,6 @@ proc newBuffer*(forkserver: ForkServer, mainproc: Pid, config: BufferConfig, istream.sread(process) return Container( source: source, - attrs: attrs, width: attrs.width, height: attrs.height - 1, title: title, @@ -875,7 +873,6 @@ proc click(container: Container) {.jsfunc.} = .then(proc(res: ClickResult) = container.onclick(res)) proc windowChange*(container: Container, attrs: WindowAttributes) = - container.attrs = attrs if attrs.width != container.width or attrs.height - 1 != container.height: container.width = attrs.width container.height = attrs.height - 1 -- cgit