remove unused API (and ifstream)
[ardour.git] / libs / gtkmm2ext / textviewer.cc
index 995cbc8eaa450d3b8dc92d3f637170eb29304acd..91882c32800811b25b4382d7fc206b875edfed11 100644 (file)
@@ -73,32 +73,6 @@ TextViewer::signal_released_handler()
        hide();
 }
 
-void
-TextViewer::insert_file (const string &path)
-
-{
-       char buf[1024];
-       ifstream f (path.c_str());
-
-       if (!f) {
-               return;
-       }
-
-       Glib::RefPtr<Gtk::TextBuffer> tb (etext.get_buffer());
-
-       tb->begin_user_action();
-       while (f) {
-               f.read (buf, sizeof (buf));
-
-               if (f.gcount()) {
-                       buf[f.gcount()] = '\0';
-                       string foo (buf);
-                       tb->insert (tb->end(), foo);
-               }
-       }
-       tb->end_user_action();
-}
-
 void
 TextViewer::scroll_to_bottom ()