diff options
author | bptato <nincsnevem662@gmail.com> | 2024-03-18 12:11:15 +0100 |
---|---|---|
committer | bptato <nincsnevem662@gmail.com> | 2024-03-18 12:11:15 +0100 |
commit | c0af45b47a78bc4d3f07d84b2e04d61e9ced75ac (patch) | |
tree | 2d27a40f9e7221465b3b4de2017f729772f3dac0 /src/local/pager.nim | |
parent | fc8937b53327f99b5809f78e3257e62a05bd1c79 (diff) | |
download | chawan-c0af45b47a78bc4d3f07d84b2e04d61e9ced75ac.tar.gz |
pager: remove useless code
Diffstat (limited to 'src/local/pager.nim')
-rw-r--r-- | src/local/pager.nim | 15 |
1 files changed, 0 insertions, 15 deletions
diff --git a/src/local/pager.nim b/src/local/pager.nim index e5d7d062..f5dbff4b 100644 --- a/src/local/pager.nim +++ b/src/local/pager.nim @@ -104,7 +104,6 @@ type askcursor: int askpromise*: Promise[bool] askprompt: string - cgiDir*: seq[string] commandMode {.jsget.}: bool config*: Config connectingContainers*: seq[ConnectingContainerItem] @@ -277,13 +276,6 @@ proc quit*(pager: Pager, code = 0) = pager.term.quit() pager.dumpAlerts() -proc setPaths(pager: Pager): Err[string] = - var cgiDir: seq[string] - for path in pager.config.external.cgi_dir: - cgiDir.add(path) - pager.cgiDir = cgiDir - return ok() - proc newPager*(config: Config; forkserver: ForkServer; ctx: JSContext): Pager = let (mailcap, errs) = config.getMailcap() let pager = Pager( @@ -295,13 +287,6 @@ proc newPager*(config: Config; forkserver: ForkServer; ctx: JSContext): Pager = term: newTerminal(stdout, config), urimethodmap: config.getURIMethodMap() ) - let r = pager.setPaths() - if r.isErr: - pager.alert(r.error) - pager.alert("Exiting...") - #TODO maybe there is a better way to do this - pager.quit(1) - quit(1) for err in errs: pager.alert("Error reading mailcap: " & err) return pager |