summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorCyril Plisko <cyril.plisko@mountall.com>2018-09-25 11:40:47 +0300
committerCyril Plisko <cyril.plisko@mountall.com>2018-09-25 11:40:47 +0300
commitd3f481cef21a67048d4b2cc0837a9acb3ee30e11 (patch)
tree678c810e980d896c4a9d5ece1adc32eaa472b0ef
parent2098b48765588743aee5c1e560746f5f82611354 (diff)
Drop utils::find_pager
-rw-r--r--src/utils.rs8
1 files changed, 0 insertions, 8 deletions
diff --git a/src/utils.rs b/src/utils.rs
index 1c38760..c97c4d7 100644
--- a/src/utils.rs
+++ b/src/utils.rs
@@ -59,14 +59,6 @@ fn which(exec: &str) -> Option<OsString> {
None
}
-pub fn find_pager(env: &str) -> Option<OsString> {
- if env::var_os("NOPAGER").is_some() {
- return None;
- }
- let default_pager = || which("more");
- env::var_os(env).or_else(default_pager)
-}
-
pub fn isatty(fd: i32) -> bool {
let isatty = unsafe { libc::isatty(fd) };
isatty != 0