diff src/input.cc @ 6991:f20010b5dcf0

[project @ 2007-10-09 21:22:57 by dbateman]
author dbateman
date Tue, 09 Oct 2007 21:22:57 +0000
parents 2883ea1c5c18
children 6304d9ea0a30
line wrap: on
line diff
--- a/src/input.cc	Tue Oct 09 20:39:55 2007 +0000
+++ b/src/input.cc	Tue Oct 09 21:22:57 2007 +0000
@@ -535,31 +535,6 @@
     return (std::string ("'") + text);
 }
 
-static void
-accept_line (const std::string &text)
-{
-  // Close open strings if needed
-  bool sq = false;
-  bool dq = false;
-  bool pass_next = false;
-
-  for (std::string::const_iterator it = text.begin(); it < text.end(); it++)
-    {
-      if (pass_next)
-	pass_next = false;
-      else if (*it == '\\')
-	pass_next = true;
-      else if (*it == '\'' && ! dq)
-	sq = !sq;
-      else if (*it == '"' && ! sq)
-	dq = !dq;
-    }
-  if (sq)
-    command_editor::insert_text("'");
-  if (dq)
-    command_editor::insert_text("\"");
-}
-
 void
 initialize_command_input (void)
 {
@@ -585,8 +560,6 @@
   command_editor::set_completion_function (generate_completion);
 
   command_editor::set_quoting_function (quoting_filename);
-
-  command_editor::set_user_accept_line_function (accept_line);
 }
 
 static bool