about summary refs log tree commit diff stats
diff options
context:
space:
mode:
authorbptato <nincsnevem662@gmail.com>2023-09-07 19:43:26 +0200
committerbptato <nincsnevem662@gmail.com>2023-09-07 19:43:26 +0200
commit9451863c968aaa19a175aa6ff42c099b8fe7d908 (patch)
treeb7f81953e2af76a15b0f2113ac09acfdbfd83efc
parent75b1c4ca74c7ca0ea1d746b7d5ebb105fd1a3400 (diff)
downloadchawan-9451863c968aaa19a175aa6ff42c099b8fe7d908.tar.gz
container: remove attrs
It was unused; we just set the width and height instead.
-rw-r--r--src/buffer/container.nim3
1 files changed, 0 insertions, 3 deletions
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