« get me outta code hell

tui-lib - Pure Node.js library for making visual command-line programs (ala vim, ncdu)
about summary refs log tree commit diff
path: root/ui/HorizontalBox.js
diff options
context:
space:
mode:
Diffstat (limited to 'ui/HorizontalBox.js')
-rw-r--r--ui/HorizontalBox.js13
1 files changed, 0 insertions, 13 deletions
diff --git a/ui/HorizontalBox.js b/ui/HorizontalBox.js
deleted file mode 100644
index f92bf10..0000000
--- a/ui/HorizontalBox.js
+++ /dev/null
@@ -1,13 +0,0 @@
-const DisplayElement = require('./DisplayElement')
-
-module.exports = class HorizontalBox extends DisplayElement {
-  // A box that will automatically lay out its children in a horizontal row.
-
-  fixLayout() {
-    let nextX = 0
-    for (const child of this.children) {
-      child.x = nextX
-      nextX = child.right + 1
-    }
-  }
-}