about summary refs log tree commit diff stats
path: root/apps/browse.mu
diff options
context:
space:
mode:
authorKartik Agaram <vc@akkartik.com>2020-05-30 01:13:04 -0700
committerKartik Agaram <vc@akkartik.com>2020-05-30 01:13:04 -0700
commit7bdd25fa397219c0952878fcd6f9bfb1e4f194ce (patch)
treeb1482659f1eb10ed57b218bfbe52d327f1ac0bd8 /apps/browse.mu
parent1bfee0954cb703d92c44ae9f098f5d7c738c8a30 (diff)
downloadmu-7bdd25fa397219c0952878fcd6f9bfb1e4f194ce.tar.gz
6446
Diffstat (limited to 'apps/browse.mu')
-rw-r--r--apps/browse.mu7
1 files changed, 1 insertions, 6 deletions
diff --git a/apps/browse.mu b/apps/browse.mu
index 0f90aa13..5a490848 100644
--- a/apps/browse.mu
+++ b/apps/browse.mu
@@ -21,7 +21,7 @@ fn main args: (addr array (addr array byte)) -> exit-status/ebx: int {
 
 # decide how to lay out pages on screen
 fn render in: (addr buffered-file), nrows: int, ncols: int {
-  # Fit n pages on screen on separate columns, each wide enough to read
+  # Fit multiple pages on screen on separate columns, each wide enough to read
   # comfortably.
   # Pages are separated horizontally by a 'page margin'. Among other reasons,
   # this allows the odd line to bleed out on the right if necessary.
@@ -30,7 +30,6 @@ fn render in: (addr buffered-file), nrows: int, ncols: int {
   #   top-margin
   #   page-margin
   #   text-width
-  var npages/eax: int <- num-pages ncols, 0x40, 5  # text-width, page-margin
   var toprow/eax: int <- copy 2  # top-margin
   var botrow/ecx: int <- copy nrows
   var leftcol/edx: int <- copy 5  # page-margin
@@ -48,10 +47,6 @@ fn render in: (addr buffered-file), nrows: int, ncols: int {
   }
 }
 
-fn num-pages ncols: int, text-width: int, page-margin: int -> result/eax: int {
-  result <- copy 3
-}
-
 fn render-page in: (addr buffered-file), toprow: int, leftcol: int, botrow: int, rightcol: int {
   clear toprow, leftcol, botrow, rightcol
   # render screen rows