From 4ffd2380c3956206e279d6d1deab8c680cf192b3 Mon Sep 17 00:00:00 2001 From: ridiculousfish Date: Fri, 24 Jan 2014 16:58:22 -0800 Subject: [PATCH] Remove yet more unnecessary fish_pager.cpp specific code from the new pager --- pager.cpp | 70 +------------------------------------------------------ 1 file changed, 1 insertion(+), 69 deletions(-) diff --git a/pager.cpp b/pager.cpp index fc2ae5cf2..91d7e7ad9 100644 --- a/pager.cpp +++ b/pager.cpp @@ -3,66 +3,8 @@ #include "pager.h" #include "highlight.h" #include "input_common.h" - - -#if 1 - -#include -#include -#include -#include -#include -#include -#include -#include - -#include -#include - -#ifdef HAVE_SYS_IOCTL_H -#include -#endif - -#include -#include -#include -#include - -#include - -#if HAVE_NCURSES_H -#include -#else -#include -#endif - -#if HAVE_TERM_H -#include -#elif HAVE_NCURSES_TERM_H -#include -#endif - -#include - -#ifdef HAVE_GETOPT_H -#include -#endif - -#include #include - -#include "fallback.h" -#include "util.h" - -#include "wutil.h" -#include "common.h" -#include "complete.h" -#include "output.h" -#include "input_common.h" -#include "env_universal.h" -#include "print_help.h" -#include "highlight.h" -#endif +#include #define PAGER_SELECTION_NONE ((size_t)(-1)) @@ -70,16 +12,6 @@ typedef pager_t::comp_t comp_t; typedef std::vector completion_list_t; typedef std::vector comp_info_list_t; -enum -{ - LINE_UP = R_NULL+1, - LINE_DOWN, - PAGE_UP, - PAGE_DOWN -} -; - - /** The minimum width (in characters) the terminal may have for fish_pager to not refuse showing the completions */ #define PAGER_MIN_WIDTH 16