Remove some unused code.

git-svn-id: svn://localhost/ardour2/branches/3.0@11596 d708f5d6-7413-0410-9779-e7cbd77b26cf
This commit is contained in:
Carl Hetherington
2012-03-05 13:18:43 +00:00
parent 1eaf450e03
commit a7a445c044
2 changed files with 0 additions and 119 deletions

View File

@@ -650,59 +650,6 @@ ARDOUR_UI::update_autosave ()
}
}
void
ARDOUR_UI::backend_audio_error (bool we_set_params, Gtk::Window* toplevel)
{
string title;
if (we_set_params) {
title = string_compose (_("%1 could not start JACK"), PROGRAM_NAME);
} else {
title = string_compose (_("%1 could not connect to JACK."), PROGRAM_NAME);
}
MessageDialog win (title,
false,
Gtk::MESSAGE_INFO,
Gtk::BUTTONS_NONE);
if (we_set_params) {
win.set_secondary_text(_("There are several possible reasons:\n\
\n\
1) You requested audio parameters that are not supported..\n\
2) JACK is running as another user.\n\
\n\
Please consider the possibilities, and perhaps try different parameters."));
} else {
win.set_secondary_text(_("There are several possible reasons:\n\
\n\
1) JACK is not running.\n\
2) JACK is running as another user, perhaps root.\n\
3) There is already another client called \"ardour\".\n\
\n\
Please consider the possibilities, and perhaps (re)start JACK."));
}
if (toplevel) {
win.set_transient_for (*toplevel);
}
if (we_set_params) {
win.add_button (Stock::OK, RESPONSE_CLOSE);
} else {
win.add_button (Stock::QUIT, RESPONSE_CLOSE);
}
win.set_default_response (RESPONSE_CLOSE);
win.show_all ();
win.set_position (Gtk::WIN_POS_CENTER);
pop_back_splash (win);
/* we just don't care about the result, but we want to block */
win.run ();
}
void
ARDOUR_UI::startup ()
{
@@ -1192,13 +1139,6 @@ ARDOUR_UI::update_wall_clock ()
return TRUE;
}
gint
ARDOUR_UI::session_menu (GdkEventButton */*ev*/)
{
session_popup_menu->popup (0, 0);
return TRUE;
}
void
ARDOUR_UI::redisplay_recent_sessions ()
{
@@ -1539,25 +1479,6 @@ restart JACK with more ports."), PROGRAM_NAME));
}
}
void
ARDOUR_UI::do_transport_locate (framepos_t new_position, bool with_roll)
{
framecnt_t _preroll = 0;
if (_session) {
// XXX CONFIG_CHANGE FIX - requires AnyTime handling
// _preroll = _session->convert_to_frames_at (new_position, Config->get_preroll());
if (new_position > _preroll) {
new_position -= _preroll;
} else {
new_position = 0;
}
_session->request_locate (new_position, with_roll);
}
}
void
ARDOUR_UI::transport_goto_start ()
{
@@ -1650,14 +1571,6 @@ ARDOUR_UI::transport_stop ()
_session->request_stop (false, true);
}
void
ARDOUR_UI::transport_stop_and_forget_capture ()
{
if (_session) {
_session->request_stop (true, true);
}
}
void
ARDOUR_UI::remove_last_capture()
{
@@ -2097,12 +2010,6 @@ ARDOUR_UI::do_engine_start ()
return 0;
}
void
ARDOUR_UI::setup_theme ()
{
theme_manager->setup_theme();
}
void
ARDOUR_UI::update_clocks ()
{
@@ -2123,18 +2030,6 @@ ARDOUR_UI::stop_clocking ()
clock_signal_connection.disconnect ();
}
void
ARDOUR_UI::toggle_clocking ()
{
#if 0
if (clock_button.get_active()) {
start_clocking ();
} else {
stop_clocking ();
}
#endif
}
gint
ARDOUR_UI::_blink (void *arg)
@@ -2553,12 +2448,6 @@ ARDOUR_UI::idle_load (const std::string& path)
}
}
void
ARDOUR_UI::end_loading_messages ()
{
// hide_splash ();
}
void
ARDOUR_UI::loading_message (const std::string& msg)
{

View File

@@ -188,7 +188,6 @@ class ARDOUR_UI : public Gtkmm2ext::UI, public ARDOUR::SessionHandlePtr
void save_ardour_state ();
gboolean configure_handler (GdkEventConfigure* conf);
void do_transport_locate (framepos_t, bool);
void halt_on_xrun_message ();
void xrun_handler (framepos_t);
void create_xrun_marker (framepos_t);
@@ -244,7 +243,6 @@ class ARDOUR_UI : public Gtkmm2ext::UI, public ARDOUR::SessionHandlePtr
void restore_editing_space ();
void setup_profile ();
void setup_theme ();
void setup_tooltips ();
void set_shuttle_fract (double);
@@ -258,7 +256,6 @@ class ARDOUR_UI : public Gtkmm2ext::UI, public ARDOUR::SessionHandlePtr
protected:
friend class PublicEditor;
void toggle_clocking ();
void toggle_auto_play ();
void toggle_auto_input ();
void toggle_punch ();
@@ -292,7 +289,6 @@ class ARDOUR_UI : public Gtkmm2ext::UI, public ARDOUR::SessionHandlePtr
static ARDOUR_UI *theArdourUI;
void backend_audio_error (bool we_set_params, Gtk::Window* toplevel = 0);
void startup ();
void shutdown ();
@@ -521,8 +517,6 @@ class ARDOUR_UI : public Gtkmm2ext::UI, public ARDOUR::SessionHandlePtr
sigc::connection point_oh_five_second_connection;
sigc::connection point_zero_one_second_connection;
gint session_menu (GdkEventButton *);
void open_session ();
void open_recent_session ();
void save_template ();
@@ -542,7 +536,6 @@ class ARDOUR_UI : public Gtkmm2ext::UI, public ARDOUR::SessionHandlePtr
void transport_goto_end ();
void transport_goto_wallclock ();
void transport_stop ();
void transport_stop_and_forget_capture ();
void transport_record (bool roll);
void transport_roll ();
void transport_play_selection();
@@ -682,7 +675,6 @@ class ARDOUR_UI : public Gtkmm2ext::UI, public ARDOUR::SessionHandlePtr
Gtk::ToggleButton error_log_button;
void loading_message (const std::string& msg);
void end_loading_messages ();
void toggle_translations ();