1
0
mirror of https://github.com/djcb/mu.git synced 2024-06-26 07:29:17 +02:00

* mu-cmd-server.c: remove readline support

This commit is contained in:
djcb 2011-12-13 08:03:45 +02:00
parent 8b39c69c89
commit ba5dc29555

View File

@ -31,11 +31,6 @@
#include <glib/gprintf.h>
#ifdef HAVE_LIBREADLINE
#include <readline/readline.h>
#include <readline/history.h>
#endif /*HAVE_LIBREADLINE*/
/* hopefully, the should get us a sane PATH_MAX */
#include <limits.h>
/* not all systems provide PATH_MAX in limits.h */
@ -142,9 +137,6 @@ server_error (GError **err, MuError merr, const char* frm, ...)
static gchar*
my_readline (const char *prompt)
{
#ifdef HAVE_LIBREADLINE
return readline (MU_PROMPT);
#else
GString *gstr;
int kar;
@ -162,7 +154,6 @@ my_readline (const char *prompt)
} while (1);
return g_string_free (gstr, FALSE);
#endif /*!HAVE_LIBREADLINE*/
}
enum _Cmd {