yuzu: Reduce unused includes

master
ameerj 2022-03-19 01:16:04 +07:00
parent 9b505758dc
commit 936829e873
45 changed files with 5 additions and 104 deletions

@ -6,7 +6,6 @@
#include <thread> #include <thread>
#include "common/assert.h" #include "common/assert.h"
#include "common/param_package.h"
#include "common/string_util.h" #include "common/string_util.h"
#include "core/core.h" #include "core/core.h"
#include "core/hid/emulated_controller.h" #include "core/hid/emulated_controller.h"

@ -10,6 +10,7 @@
#include <QLineEdit> #include <QLineEdit>
#include <QScrollArea> #include <QScrollArea>
#include <QStandardItemModel> #include <QStandardItemModel>
#include <QTreeView>
#include <QVBoxLayout> #include <QVBoxLayout>
#include "common/fs/path_util.h" #include "common/fs/path_util.h"
#include "common/string_util.h" #include "common/string_util.h"

@ -7,7 +7,6 @@
#include <vector> #include <vector>
#include <QDialog> #include <QDialog>
#include <QList> #include <QList>
#include <QTreeView>
#include "core/frontend/applets/profile_select.h" #include "core/frontend/applets/profile_select.h"
#include "core/hle/service/acc/profile_manager.h" #include "core/hle/service/acc/profile_manager.h"
@ -19,6 +18,7 @@ class QLabel;
class QScrollArea; class QScrollArea;
class QStandardItem; class QStandardItem;
class QStandardItemModel; class QStandardItemModel;
class QTreeView;
class QVBoxLayout; class QVBoxLayout;
namespace Core::HID { namespace Core::HID {

@ -14,14 +14,9 @@
#endif #endif
#include "common/fs/path_util.h" #include "common/fs/path_util.h"
#include "common/param_package.h"
#include "core/core.h" #include "core/core.h"
#include "core/hid/hid_types.h"
#include "core/hid/input_interpreter.h"
#include "input_common/drivers/keyboard.h" #include "input_common/drivers/keyboard.h"
#include "input_common/main.h"
#include "yuzu/applets/qt_web_browser.h" #include "yuzu/applets/qt_web_browser.h"
#include "yuzu/applets/qt_web_browser_scripts.h"
#include "yuzu/main.h" #include "yuzu/main.h"
#include "yuzu/util/url_request_interceptor.h" #include "yuzu/util/url_request_interceptor.h"

@ -5,8 +5,6 @@
#pragma once #pragma once
#include <atomic> #include <atomic>
#include <memory>
#include <thread>
#include <QObject> #include <QObject>

@ -6,7 +6,6 @@
#include <QApplication> #include <QApplication>
#include <QHBoxLayout> #include <QHBoxLayout>
#include <QKeyEvent>
#include <QMessageBox> #include <QMessageBox>
#include <QPainter> #include <QPainter>
#include <QScreen> #include <QScreen>
@ -28,7 +27,6 @@
#include "common/assert.h" #include "common/assert.h"
#include "common/microprofile.h" #include "common/microprofile.h"
#include "common/scm_rev.h" #include "common/scm_rev.h"
#include "common/scope_exit.h"
#include "common/settings.h" #include "common/settings.h"
#include "core/core.h" #include "core/core.h"
#include "core/frontend/framebuffer_layout.h" #include "core/frontend/framebuffer_layout.h"
@ -38,7 +36,6 @@
#include "input_common/drivers/touch_screen.h" #include "input_common/drivers/touch_screen.h"
#include "input_common/main.h" #include "input_common/main.h"
#include "video_core/renderer_base.h" #include "video_core/renderer_base.h"
#include "video_core/video_core.h"
#include "yuzu/bootmanager.h" #include "yuzu/bootmanager.h"
#include "yuzu/main.h" #include "yuzu/main.h"

@ -13,7 +13,6 @@
#include <QThread> #include <QThread>
#include <QTouchEvent> #include <QTouchEvent>
#include <QWidget> #include <QWidget>
#include <QWindow>
#include "common/thread.h" #include "common/thread.h"
#include "core/frontend/emu_window.h" #include "core/frontend/emu_window.h"

@ -3,7 +3,6 @@
// Refer to the license.txt file included. // Refer to the license.txt file included.
#include <QCheckBox> #include <QCheckBox>
#include <QComboBox>
#include <QObject> #include <QObject>
#include <QString> #include <QString>
#include "common/settings.h" #include "common/settings.h"

@ -6,7 +6,6 @@
#include <QCheckBox> #include <QCheckBox>
#include <QComboBox> #include <QComboBox>
#include <QString>
#include "common/settings.h" #include "common/settings.h"
namespace ConfigurationShared { namespace ConfigurationShared {

@ -4,8 +4,6 @@
#include <memory> #include <memory>
#include <QSignalBlocker>
#include "audio_core/sink.h" #include "audio_core/sink.h"
#include "audio_core/sink_details.h" #include "audio_core/sink_details.h"
#include "common/settings.h" #include "common/settings.h"

@ -2,11 +2,7 @@
// Licensed under GPLv2 or any later version // Licensed under GPLv2 or any later version
// Refer to the license.txt file included. // Refer to the license.txt file included.
#include <QComboBox>
#include <QMessageBox>
#include "common/common_types.h" #include "common/common_types.h"
#include "common/logging/log.h"
#include "common/settings.h" #include "common/settings.h"
#include "core/core.h" #include "core/core.h"
#include "ui_configure_cpu.h" #include "ui_configure_cpu.h"

@ -6,7 +6,6 @@
#include <memory> #include <memory>
#include <QWidget> #include <QWidget>
#include "common/settings.h"
namespace Core { namespace Core {
class System; class System;

@ -2,10 +2,6 @@
// Licensed under GPLv2 or any later version // Licensed under GPLv2 or any later version
// Refer to the license.txt file included. // Refer to the license.txt file included.
#include <QComboBox>
#include "common/common_types.h"
#include "common/logging/log.h"
#include "common/settings.h" #include "common/settings.h"
#include "core/core.h" #include "core/core.h"
#include "ui_configure_cpu_debug.h" #include "ui_configure_cpu_debug.h"

@ -3,13 +3,6 @@
// Refer to the license.txt file included. // Refer to the license.txt file included.
#include <memory> #include <memory>
#include <QAbstractButton>
#include <QDialogButtonBox>
#include <QHash>
#include <QListWidgetItem>
#include <QPushButton>
#include <QSignalBlocker>
#include <QTabWidget>
#include "common/logging/log.h" #include "common/logging/log.h"
#include "common/settings.h" #include "common/settings.h"
#include "core/core.h" #include "core/core.h"

@ -4,13 +4,10 @@
#include <functional> #include <functional>
#include <utility> #include <utility>
#include <QCheckBox>
#include <QMessageBox> #include <QMessageBox>
#include <QSpinBox>
#include "common/settings.h" #include "common/settings.h"
#include "core/core.h" #include "core/core.h"
#include "ui_configure_general.h" #include "ui_configure_general.h"
#include "yuzu/configuration/config.h"
#include "yuzu/configuration/configuration_shared.h" #include "yuzu/configuration/configuration_shared.h"
#include "yuzu/configuration/configure_general.h" #include "yuzu/configuration/configure_general.h"
#include "yuzu/uisettings.h" #include "yuzu/uisettings.h"

@ -6,7 +6,6 @@
#include "video_core/vulkan_common/vulkan_wrapper.h" #include "video_core/vulkan_common/vulkan_wrapper.h"
#include <QColorDialog> #include <QColorDialog>
#include <QComboBox>
#include <QVulkanInstance> #include <QVulkanInstance>
#include "common/common_types.h" #include "common/common_types.h"

@ -2,13 +2,9 @@
// Licensed under GPLv2 or any later version // Licensed under GPLv2 or any later version
// Refer to the license.txt file included. // Refer to the license.txt file included.
#include <algorithm>
#include <memory> #include <memory>
#include <thread> #include <thread>
#include <QSignalBlocker>
#include <QTimer>
#include "core/core.h" #include "core/core.h"
#include "core/hid/emulated_controller.h" #include "core/hid/emulated_controller.h"
#include "core/hid/hid_core.h" #include "core/hid/hid_core.h"

@ -7,7 +7,6 @@
#include <utility> #include <utility>
#include <QGridLayout> #include <QGridLayout>
#include <QInputDialog> #include <QInputDialog>
#include <QKeyEvent>
#include <QMenu> #include <QMenu>
#include <QMessageBox> #include <QMessageBox>
#include <QTimer> #include <QTimer>
@ -23,7 +22,6 @@
#include "yuzu/configuration/config.h" #include "yuzu/configuration/config.h"
#include "yuzu/configuration/configure_input_player.h" #include "yuzu/configuration/configure_input_player.h"
#include "yuzu/configuration/configure_input_player_widget.h" #include "yuzu/configuration/configure_input_player_widget.h"
#include "yuzu/configuration/configure_vibration.h"
#include "yuzu/configuration/input_profiles.h" #include "yuzu/configuration/input_profiles.h"
#include "yuzu/util/limitable_input_dialog.h" #include "yuzu/util/limitable_input_dialog.h"

@ -2,16 +2,11 @@
// Licensed under GPLv2 or any later version // Licensed under GPLv2 or any later version
// Refer to the license.txt file included. // Refer to the license.txt file included.
#include <array>
#include <sstream> #include <sstream>
#include <QCloseEvent> #include <QCloseEvent>
#include <QLabel>
#include <QMessageBox> #include <QMessageBox>
#include <QPushButton>
#include <QRegularExpression>
#include <QStringListModel> #include <QStringListModel>
#include <QVBoxLayout>
#include "common/logging/log.h" #include "common/logging/log.h"
#include "common/settings.h" #include "common/settings.h"

@ -6,7 +6,6 @@
#include <memory> #include <memory>
#include <QDialog> #include <QDialog>
#include "common/param_package.h"
class QLabel; class QLabel;
class QPushButton; class QPushButton;

@ -2,7 +2,6 @@
// Licensed under GPLv2 or any later version // Licensed under GPLv2 or any later version
// Refer to the license.txt file included. // Refer to the license.txt file included.
#include <QGraphicsItem>
#include <QtConcurrent/QtConcurrent> #include <QtConcurrent/QtConcurrent>
#include "common/settings.h" #include "common/settings.h"
#include "core/core.h" #include "core/core.h"

@ -5,7 +5,6 @@
#pragma once #pragma once
#include <memory> #include <memory>
#include <QFutureWatcher>
#include <QWidget> #include <QWidget>
namespace Ui { namespace Ui {

@ -12,17 +12,11 @@
#include <QAbstractButton> #include <QAbstractButton>
#include <QCheckBox> #include <QCheckBox>
#include <QDialogButtonBox>
#include <QHeaderView>
#include <QMenu>
#include <QPushButton> #include <QPushButton>
#include <QStandardItemModel>
#include <QString> #include <QString>
#include <QTimer> #include <QTimer>
#include <QTreeView>
#include "common/fs/fs_util.h" #include "common/fs/fs_util.h"
#include "common/fs/path_util.h"
#include "core/core.h" #include "core/core.h"
#include "core/file_sys/control_metadata.h" #include "core/file_sys/control_metadata.h"
#include "core/file_sys/patch_manager.h" #include "core/file_sys/patch_manager.h"

@ -6,7 +6,6 @@
#include <memory> #include <memory>
#include <string> #include <string>
#include <vector>
#include <QDialog> #include <QDialog>
#include <QList> #include <QList>

@ -24,7 +24,6 @@
#include "yuzu/configuration/configure_input.h" #include "yuzu/configuration/configure_input.h"
#include "yuzu/configuration/configure_per_game_addons.h" #include "yuzu/configuration/configure_per_game_addons.h"
#include "yuzu/uisettings.h" #include "yuzu/uisettings.h"
#include "yuzu/util/util.h"
ConfigurePerGameAddons::ConfigurePerGameAddons(Core::System& system_, QWidget* parent) ConfigurePerGameAddons::ConfigurePerGameAddons(Core::System& system_, QWidget* parent)
: QWidget(parent), ui{std::make_unique<Ui::ConfigurePerGameAddons>()}, system{system_} { : QWidget(parent), ui{std::make_unique<Ui::ConfigurePerGameAddons>()}, system{system_} {

@ -5,12 +5,10 @@
#include <algorithm> #include <algorithm>
#include <QFileDialog> #include <QFileDialog>
#include <QGraphicsItem> #include <QGraphicsItem>
#include <QGraphicsScene>
#include <QHeaderView> #include <QHeaderView>
#include <QMessageBox> #include <QMessageBox>
#include <QStandardItemModel> #include <QStandardItemModel>
#include <QTreeView> #include <QTreeView>
#include <QVBoxLayout>
#include "common/assert.h" #include "common/assert.h"
#include "common/fs/path_util.h" #include "common/fs/path_util.h"
#include "common/settings.h" #include "common/settings.h"

@ -2,14 +2,12 @@
// Licensed under GPLv2 or any later version // Licensed under GPLv2 or any later version
// Refer to the license.txt file included. // Refer to the license.txt file included.
#include <array>
#include <chrono> #include <chrono>
#include <optional> #include <optional>
#include <QFileDialog> #include <QFileDialog>
#include <QGraphicsItem> #include <QGraphicsItem>
#include <QMessageBox> #include <QMessageBox>
#include "common/assert.h"
#include "common/settings.h" #include "common/settings.h"
#include "core/core.h" #include "core/core.h"
#include "core/hle/service/time/time_manager.h" #include "core/hle/service/time/time_manager.h"

@ -6,7 +6,6 @@
#include <memory> #include <memory>
#include <QList>
#include <QWidget> #include <QWidget>
namespace Core { namespace Core {

@ -6,6 +6,8 @@
#include <QDialog> #include <QDialog>
class QLineEdit;
namespace Ui { namespace Ui {
class ConfigureTas; class ConfigureTas;
} }

@ -6,7 +6,6 @@
#include <QKeyEvent> #include <QKeyEvent>
#include <QMessageBox> #include <QMessageBox>
#include <QMouseEvent> #include <QMouseEvent>
#include <QResizeEvent>
#include <QStandardItemModel> #include <QStandardItemModel>
#include <QTimer> #include <QTimer>
#include "common/param_package.h" #include "common/param_package.h"

@ -2,12 +2,6 @@
// Licensed under GPLv2 or any later version // Licensed under GPLv2 or any later version
// Refer to the license.txt file included. // Refer to the license.txt file included.
#include <algorithm>
#include <unordered_map>
#include <fmt/format.h>
#include "common/param_package.h"
#include "common/settings.h" #include "common/settings.h"
#include "core/hid/emulated_controller.h" #include "core/hid/emulated_controller.h"
#include "core/hid/hid_core.h" #include "core/hid/hid_core.h"

@ -5,7 +5,6 @@
#pragma once #pragma once
#include <string> #include <string>
#include <string_view>
#include <unordered_map> #include <unordered_map>
namespace Core { namespace Core {

@ -7,9 +7,7 @@
#include "yuzu/debugger/wait_tree.h" #include "yuzu/debugger/wait_tree.h"
#include "yuzu/uisettings.h" #include "yuzu/uisettings.h"
#include "yuzu/util/util.h"
#include "common/assert.h"
#include "core/arm/arm_interface.h" #include "core/arm/arm_interface.h"
#include "core/core.h" #include "core/core.h"
#include "core/hle/kernel/k_class_token.h" #include "core/hle/kernel/k_class_token.h"

@ -8,7 +8,6 @@
#include <memory> #include <memory>
#include <vector> #include <vector>
#include <QAbstractItemModel>
#include <QDockWidget> #include <QDockWidget>
#include <QTreeView> #include <QTreeView>

@ -10,10 +10,10 @@
#include <QJsonArray> #include <QJsonArray>
#include <QJsonDocument> #include <QJsonDocument>
#include <QJsonObject> #include <QJsonObject>
#include <QKeyEvent>
#include <QList> #include <QList>
#include <QMenu> #include <QMenu>
#include <QThreadPool> #include <QThreadPool>
#include <QToolButton>
#include <fmt/format.h> #include <fmt/format.h>
#include "common/common_types.h" #include "common/common_types.h"
#include "common/logging/log.h" #include "common/logging/log.h"

@ -5,16 +5,11 @@
#pragma once #pragma once
#include <QFileSystemWatcher> #include <QFileSystemWatcher>
#include <QHBoxLayout>
#include <QLabel> #include <QLabel>
#include <QLineEdit> #include <QLineEdit>
#include <QList> #include <QList>
#include <QModelIndex>
#include <QSettings>
#include <QStandardItem>
#include <QStandardItemModel> #include <QStandardItemModel>
#include <QString> #include <QString>
#include <QToolButton>
#include <QTreeView> #include <QTreeView>
#include <QVBoxLayout> #include <QVBoxLayout>
#include <QVector> #include <QVector>

@ -11,7 +11,6 @@
#include <QCoreApplication> #include <QCoreApplication>
#include <QFileInfo> #include <QFileInfo>
#include <QImage>
#include <QObject> #include <QObject>
#include <QStandardItem> #include <QStandardItem>
#include <QString> #include <QString>

@ -23,7 +23,6 @@
#include "core/file_sys/patch_manager.h" #include "core/file_sys/patch_manager.h"
#include "core/file_sys/registered_cache.h" #include "core/file_sys/registered_cache.h"
#include "core/file_sys/submission_package.h" #include "core/file_sys/submission_package.h"
#include "core/hle/service/filesystem/filesystem.h"
#include "core/loader/loader.h" #include "core/loader/loader.h"
#include "yuzu/compatibility_list.h" #include "yuzu/compatibility_list.h"
#include "yuzu/game_list.h" #include "yuzu/game_list.h"

@ -5,18 +5,14 @@
#pragma once #pragma once
#include <atomic> #include <atomic>
#include <map>
#include <memory> #include <memory>
#include <string> #include <string>
#include <unordered_map>
#include <QList> #include <QList>
#include <QObject> #include <QObject>
#include <QRunnable> #include <QRunnable>
#include <QString> #include <QString>
#include <QVector>
#include "common/common_types.h"
#include "yuzu/compatibility_list.h" #include "yuzu/compatibility_list.h"
namespace Core { namespace Core {

@ -3,7 +3,6 @@
// Refer to the license.txt file included. // Refer to the license.txt file included.
#include <sstream> #include <sstream>
#include <QKeySequence>
#include <QShortcut> #include <QShortcut>
#include <QTreeWidgetItem> #include <QTreeWidgetItem>
#include <QtGlobal> #include <QtGlobal>

@ -5,7 +5,6 @@
#include <QCheckBox> #include <QCheckBox>
#include <QDialogButtonBox> #include <QDialogButtonBox>
#include <QFileInfo> #include <QFileInfo>
#include <QHBoxLayout>
#include <QLabel> #include <QLabel>
#include <QListWidget> #include <QListWidget>
#include <QVBoxLayout> #include <QVBoxLayout>

@ -6,19 +6,12 @@
#include <QBuffer> #include <QBuffer>
#include <QByteArray> #include <QByteArray>
#include <QGraphicsOpacityEffect> #include <QGraphicsOpacityEffect>
#include <QHBoxLayout>
#include <QIODevice> #include <QIODevice>
#include <QImage> #include <QImage>
#include <QLabel>
#include <QPainter> #include <QPainter>
#include <QPalette>
#include <QPixmap> #include <QPixmap>
#include <QProgressBar>
#include <QPropertyAnimation> #include <QPropertyAnimation>
#include <QStyleOption> #include <QStyleOption>
#include <QTime>
#include <QtConcurrent/QtConcurrentRun>
#include "common/logging/log.h"
#include "core/frontend/framebuffer_layout.h" #include "core/frontend/framebuffer_layout.h"
#include "core/loader/loader.h" #include "core/loader/loader.h"
#include "ui_loading_screen.h" #include "ui_loading_screen.h"

@ -20,7 +20,6 @@
#include "configuration/configure_input.h" #include "configuration/configure_input.h"
#include "configuration/configure_per_game.h" #include "configuration/configure_per_game.h"
#include "configuration/configure_tas.h" #include "configuration/configure_tas.h"
#include "configuration/configure_vibration.h"
#include "core/file_sys/vfs.h" #include "core/file_sys/vfs.h"
#include "core/file_sys/vfs_real.h" #include "core/file_sys/vfs_real.h"
#include "core/frontend/applets/controller.h" #include "core/frontend/applets/controller.h"
@ -54,8 +53,6 @@ static FileSys::VirtualFile VfsDirectoryCreateFileWrapper(const FileSys::Virtual
#include <QClipboard> #include <QClipboard>
#include <QDesktopServices> #include <QDesktopServices>
#include <QDesktopWidget> #include <QDesktopWidget>
#include <QDialogButtonBox>
#include <QDir>
#include <QFile> #include <QFile>
#include <QFileDialog> #include <QFileDialog>
#include <QInputDialog> #include <QInputDialog>
@ -77,11 +74,9 @@ static FileSys::VirtualFile VfsDirectoryCreateFileWrapper(const FileSys::Virtual
#include <fmt/format.h> #include <fmt/format.h>
#include "common/detached_tasks.h" #include "common/detached_tasks.h"
#include "common/fs/fs.h" #include "common/fs/fs.h"
#include "common/fs/fs_paths.h"
#include "common/fs/path_util.h" #include "common/fs/path_util.h"
#include "common/literals.h" #include "common/literals.h"
#include "common/logging/backend.h" #include "common/logging/backend.h"
#include "common/logging/filter.h"
#include "common/logging/log.h" #include "common/logging/log.h"
#include "common/memory_detect.h" #include "common/memory_detect.h"
#include "common/microprofile.h" #include "common/microprofile.h"

@ -6,14 +6,12 @@
#include <memory> #include <memory>
#include <optional> #include <optional>
#include <unordered_map>
#include <QMainWindow> #include <QMainWindow>
#include <QTimer> #include <QTimer>
#include <QTranslator> #include <QTranslator>
#include "common/common_types.h" #include "common/common_types.h"
#include "core/hle/service/acc/profile_manager.h"
#include "yuzu/compatibility_list.h" #include "yuzu/compatibility_list.h"
#include "yuzu/hotkeys.h" #include "yuzu/hotkeys.h"

@ -4,7 +4,6 @@
#pragma once #pragma once
#include <array>
#include <atomic> #include <atomic>
#include <memory> #include <memory>
#include <thread> #include <thread>