New editor API to retrieve the Stripable with via presentation info order.
[ardour.git] / libs / gtkmm2ext / textviewer.cc
index e62725acb4fb89854a826c840a84cf5bbcdcbfec..7de9b026838b537244ee4e173c933031ee9cc681 100644 (file)
@@ -18,8 +18,6 @@
 */
 
 #include <string>
-#include <fstream>
-
 #include <gtkmm2ext/textviewer.h>
 
 #include "i18n.h"
@@ -73,32 +71,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 ()
 
@@ -108,7 +80,7 @@ TextViewer::scroll_to_bottom ()
        adj = scrollwin.get_vadjustment();
        adj->set_value (MAX(0,(adj->get_upper() - adj->get_page_size())));
 }
-       
+
 void
 TextViewer::deliver ()