about summary refs log tree commit diff stats
path: root/src/local/pager.nim
diff options
context:
space:
mode:
authorbptato <nincsnevem662@gmail.com>2024-03-18 12:11:15 +0100
committerbptato <nincsnevem662@gmail.com>2024-03-18 12:11:15 +0100
commitc0af45b47a78bc4d3f07d84b2e04d61e9ced75ac (patch)
tree2d27a40f9e7221465b3b4de2017f729772f3dac0 /src/local/pager.nim
parentfc8937b53327f99b5809f78e3257e62a05bd1c79 (diff)
downloadchawan-c0af45b47a78bc4d3f07d84b2e04d61e9ced75ac.tar.gz
pager: remove useless code
Diffstat (limited to 'src/local/pager.nim')
-rw-r--r--src/local/pager.nim15
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
23:51:43 -0400 Update vim_file_chooser.vim' href='/akspecs/ranger/commit/doc/examples/vim_file_chooser.vim?h=v1.9.0b5&id=ee35f41d6b41dbf71cb558ecd8c69883738ff98a'>ee35f41d ^
93654aa0 ^
ee35f41d ^

796074b5 ^
ee35f41d ^

93654aa0 ^
ee35f41d ^








ab90d5bb ^
ee35f41d ^


1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40