Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remove unused includes to speed up build time #708

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
31 changes: 0 additions & 31 deletions gtk2_ardour/ardour_ui.cc
Original file line number Diff line number Diff line change
Expand Up @@ -39,22 +39,16 @@
#include <algorithm>
#include <cmath>
#include <iostream>
#include <cerrno>

#include <stdarg.h>

#ifndef PLATFORM_WINDOWS
#include <sys/resource.h>
#endif

#ifdef __FreeBSD__
#include <sys/types.h>
#include <sys/sysctl.h>
#endif

#include <stdint.h>
#include <fcntl.h>
#include <signal.h>
#include <unistd.h>
#include <time.h>

Expand All @@ -67,26 +61,18 @@
#include <gtkmm/uimanager.h>

#include "pbd/error.h"
#include "pbd/basename.h"
#include "pbd/compose.h"
#include "pbd/convert.h"
#include "pbd/failed_constructor.h"
#include "pbd/file_archive.h"
#include "pbd/enumwriter.h"
#include "pbd/memento_command.h"
#include "pbd/openuri.h"
#include "pbd/stl_delete.h"
#include "pbd/types_convert.h"
#include "pbd/unwind.h"
#include "pbd/file_utils.h"
#include "pbd/localtime_r.h"
#include "pbd/pthread_utils.h"
#include "pbd/replace_all.h"
#include "pbd/scoped_file_descriptor.h"
#include "pbd/xml++.h"

#include "temporal/tempo.h"

#include "gtkmm2ext/application.h"
#include "gtkmm2ext/bindings.h"
#include "gtkmm2ext/gtk_ui.h"
Expand All @@ -102,30 +88,22 @@
#include "ardour/audio_track.h"
#include "ardour/audioengine.h"
#include "ardour/audiofilesource.h"
#include "ardour/automation_watch.h"
#include "ardour/disk_reader.h"
#include "ardour/disk_writer.h"
#include "ardour/filename_extensions.h"
#include "ardour/filesystem_paths.h"
#include "ardour/ltc_file_reader.h"
#include "ardour/monitor_control.h"
#include "ardour/midi_track.h"
#include "ardour/port.h"
#include "ardour/plugin_manager.h"
#include "ardour/process_thread.h"
#include "ardour/profile.h"
#include "ardour/recent_sessions.h"
#include "ardour/record_enable_control.h"
#include "ardour/revision.h"
#include "ardour/session_directory.h"
#include "ardour/session_route.h"
#include "ardour/session_state_utils.h"
#include "ardour/session_utils.h"
#include "ardour/source_factory.h"
#include "ardour/transport_master.h"
#include "ardour/transport_master_manager.h"
#include "ardour/triggerbox.h"
#include "ardour/system_exec.h"
#include "ardour/track.h"
#include "ardour/vca_manager.h"
#include "ardour/utils.h"
Expand All @@ -147,11 +125,9 @@
#include "temporal/time.h"

#include "about.h"
#include "editing.h"
#include "enums_convert.h"
#include "actions.h"
#include "add_route_dialog.h"
#include "ambiguous_file_dialog.h"
#include "ardour_message.h"
#include "ardour_ui.h"
#include "audio_clock.h"
Expand All @@ -164,7 +140,6 @@
#include "debug.h"
#include "engine_dialog.h"
#include "export_video_dialog.h"
#include "gain_meter.h"
#include "global_port_matrix.h"
#include "gui_object.h"
#include "gui_thread.h"
Expand All @@ -176,15 +151,12 @@
#include "lua_script_manager.h"
#include "luawindow.h"
#include "main_clock.h"
#include "missing_file_dialog.h"
#include "missing_plugin_dialog.h"
#include "mixer_ui.h"
#include "meterbridge.h"
#include "meter_patterns.h"
#include "mouse_cursors.h"
#include "nsm.h"
#include "opts.h"
#include "pingback.h"
#include "plugin_dspload_window.h"
#include "plugin_manager_ui.h"
#include "processor_box.h"
Expand All @@ -210,11 +182,8 @@
#include "trigger_page.h"
#include "triggerbox_ui.h"
#include "utils.h"
#include "utils_videotl.h"
#include "video_server_dialog.h"
#include "virtual_keyboard_window.h"
#include "add_video_dialog.h"
#include "transcode_video_dialog.h"
#include "plugin_selector.h"

#include "pbd/i18n.h"
Expand Down
4 changes: 0 additions & 4 deletions gtk2_ardour/editor_audiotrack.cc
Original file line number Diff line number Diff line change
Expand Up @@ -18,13 +18,9 @@
* 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
*/

#include "ardour/rc_configuration.h"

#include "canvas/canvas.h"

#include "editor.h"
#include "editing.h"
#include "audio_time_axis.h"
#include "route_time_axis.h"
#include "audio_region_view.h"
#include "selection.h"
Expand Down
4 changes: 0 additions & 4 deletions gtk2_ardour/editor_group_tabs.cc
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,6 @@
* 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
*/

#include "gtkmm2ext/utils.h"

#include "ardour/route_group.h"

#include "gtkmm2ext/colors.h"
Expand All @@ -29,10 +27,8 @@
#include "editor_group_tabs.h"
#include "editor_route_groups.h"
#include "editor_routes.h"
#include "rgb_macros.h"
#include "route_time_axis.h"
#include "ui_config.h"
#include "utils.h"

#include "pbd/i18n.h"

Expand Down
6 changes: 0 additions & 6 deletions gtk2_ardour/editor_ops.cc
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,6 @@
#include <cstdlib>
#include <cmath>
#include <string>
#include <limits>
#include <map>
#include <set>

Expand Down Expand Up @@ -84,15 +83,12 @@
#include "ardour/triggerbox.h"
#include "ardour/vca_manager.h"

#include "canvas/canvas.h"

#include "actions.h"
#include "ardour_message.h"
#include "ardour_ui.h"
#include "audio_region_view.h"
#include "audio_streamview.h"
#include "audio_time_axis.h"
#include "automation_region_view.h"
#include "automation_time_axis.h"
#include "control_point.h"
#include "debug.h"
Expand All @@ -111,14 +107,12 @@
#include "midi_region_view.h"
#include "mixer_ui.h"
#include "mixer_strip.h"
#include "mouse_cursors.h"
#include "normalize_dialog.h"
#include "note.h"
#include "paste_context.h"
#include "patch_change_dialog.h"
#include "quantize_dialog.h"
#include "region_gain_line.h"
#include "rgb_macros.h"
#include "route_time_axis.h"
#include "selection.h"
#include "selection_templates.h"
Expand Down
10 changes: 0 additions & 10 deletions gtk2_ardour/editor_route_groups.cc
Original file line number Diff line number Diff line change
Expand Up @@ -19,14 +19,7 @@
* 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
*/

#ifdef WAF_BUILD
#include "gtk2ardour-config.h"
#endif

#include <cstdlib>
#include <cmath>

#include "fix_carbon.h"

#include <gtkmm/stock.h>

Expand All @@ -36,7 +29,6 @@
#include "widgets/tooltips.h"

#include "ardour/route_group.h"
#include "ardour/route.h"
#include "ardour/session.h"

#include "ardour_ui.h"
Expand All @@ -46,9 +38,7 @@
#include "editor_routes.h"
#include "gui_thread.h"
#include "keyboard.h"
#include "marker.h"
#include "route_group_dialog.h"
#include "route_time_axis.h"
#include "time_axis_view.h"
#include "utils.h"

Expand Down
3 changes: 0 additions & 3 deletions gtk2_ardour/editor_summary.cc
Original file line number Diff line number Diff line change
Expand Up @@ -25,13 +25,10 @@

#include "ardour/session.h"

#include "canvas/debug.h"

#include <gtkmm/menu.h>
#include <gtkmm/menuitem.h>

#include "context_menu_helper.h"
#include "time_axis_view.h"
#include "streamview.h"
#include "editor_summary.h"
#include "gui_thread.h"
Expand Down
4 changes: 0 additions & 4 deletions gtk2_ardour/midi_region_view.cc
Original file line number Diff line number Diff line change
Expand Up @@ -37,9 +37,7 @@

#include "midi++/midnam_patch.h"

#include "pbd/memento_command.h"
#include "pbd/stateful_diff_command.h"
#include "pbd/stacktrace.h"
#include "pbd/unwind.h"

#include "ardour/debug.h"
Expand All @@ -57,7 +55,6 @@
#include "evoral/midi_util.h"

#include "canvas/debug.h"
#include "canvas/text.h"

#include "automation_region_view.h"
#include "automation_time_axis.h"
Expand All @@ -77,7 +74,6 @@
#include "midi_time_axis.h"
#include "midi_util.h"
#include "midi_velocity_dialog.h"
#include "mouse_cursors.h"
#include "note_player.h"
#include "paste_context.h"
#include "public_editor.h"
Expand Down
4 changes: 1 addition & 3 deletions gtk2_ardour/midi_time_axis.h
Original file line number Diff line number Diff line change
Expand Up @@ -45,13 +45,11 @@
#include "route_time_axis.h"
#include "midi_streamview.h"

namespace MIDI {
namespace Name {
namespace MIDI::Name {
class MasterDeviceNames;
class CustomDeviceMode;
struct PatchPrimaryKey;
}
}

namespace ARDOUR {
class Session;
Expand Down
1 change: 0 additions & 1 deletion gtk2_ardour/mixer_strip.cc
Original file line number Diff line number Diff line change
Expand Up @@ -2045,7 +2045,6 @@ MixerStrip::set_meter_type (MeterType t)
void
MixerStrip::update_track_number_visibility ()
{
DisplaySuspender ds;
bool show_label = _session->config.get_track_name_number();

if (_route && _route->is_master()) {
Expand Down
Loading