mirror of
https://github.com/Ardour/ardour.git
synced 2026-01-03 12:19:33 +01:00
remove unused API (and ifstream)
This commit is contained in:
parent
eb4c9b022a
commit
c3b2cc46c5
2 changed files with 0 additions and 27 deletions
|
|
@ -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 ()
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue