From 699ab4e20a252c649339831e7c1b8a028d9fd8e8 Mon Sep 17 00:00:00 2001 From: Vincent Ambo Date: Sat, 30 May 2020 23:11:31 +0100 Subject: chore(3p/nix): Clean up some unused defines --- third_party/nix/src/nix/repl.cc | 20 +------------------- 1 file changed, 1 insertion(+), 19 deletions(-) (limited to 'third_party/nix/src/nix/repl.cc') diff --git a/third_party/nix/src/nix/repl.cc b/third_party/nix/src/nix/repl.cc index 65a22382b2..9431b5b60f 100644 --- a/third_party/nix/src/nix/repl.cc +++ b/third_party/nix/src/nix/repl.cc @@ -7,22 +7,8 @@ #include #include -#include - -#ifdef READLINE -#include -#include -#else -// editline < 1.15.2 don't wrap their API for C++ usage -// (added in -// https://github.com/troglobit/editline/commit/91398ceb3427b730995357e9d120539fb9bb7461). -// This results in linker errors due to to name-mangling of editline C symbols. -// For compatibility with these versions, we wrap the API here -// (wrapping multiple times on newer versions is no problem). -extern "C" { #include -} -#endif +#include #include "libexpr/common-eval-args.hh" #include "libexpr/eval-inline.hh" @@ -242,15 +228,11 @@ void NixRepl::mainLoop(const std::vector& files) { // Allow nix-repl specific settings in .inputrc rl_readline_name = "nix-repl"; createDirs(dirOf(historyFile)); -#ifndef READLINE el_hist_size = 1000; -#endif read_history(historyFile.c_str()); curRepl = this; -#ifndef READLINE rl_set_complete_func(completionCallback); rl_set_list_possib_func(listPossibleCallback); -#endif std::string input; -- cgit 1.4.1