forked from qt-creator/qt-creator
Fix some warnings about unused things
Change-Id: I42bb514dfe1d6745b1469b508a4cfa576e17c31b Reviewed-by: hjk <hjk@qt.io> Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org>
This commit is contained in:
@@ -83,7 +83,6 @@ namespace CMakeProjectManager {
|
|||||||
|
|
||||||
static Q_LOGGING_CATEGORY(cmakeBuildConfigurationLog, "qtc.cmake.bc", QtWarningMsg);
|
static Q_LOGGING_CATEGORY(cmakeBuildConfigurationLog, "qtc.cmake.bc", QtWarningMsg);
|
||||||
|
|
||||||
const char CONFIGURATION_KEY[] = "CMake.Configuration";
|
|
||||||
const char DEVELOPMENT_TEAM_FLAG[] = "Ios:DevelopmentTeam:Flag";
|
const char DEVELOPMENT_TEAM_FLAG[] = "Ios:DevelopmentTeam:Flag";
|
||||||
const char PROVISIONING_PROFILE_FLAG[] = "Ios:ProvisioningProfile:Flag";
|
const char PROVISIONING_PROFILE_FLAG[] = "Ios:ProvisioningProfile:Flag";
|
||||||
const char CMAKE_OSX_ARCHITECTURES_FLAG[] = "CMAKE_OSX_ARCHITECTURES:DefaultFlag";
|
const char CMAKE_OSX_ARCHITECTURES_FLAG[] = "CMAKE_OSX_ARCHITECTURES:DefaultFlag";
|
||||||
|
@@ -812,7 +812,7 @@ public:
|
|||||||
setId(SETTINGS_USER_CMDS_ID);
|
setId(SETTINGS_USER_CMDS_ID);
|
||||||
setDisplayName(Tr::tr("User Command Mapping"));
|
setDisplayName(Tr::tr("User Command Mapping"));
|
||||||
setCategory(SETTINGS_CATEGORY);
|
setCategory(SETTINGS_CATEGORY);
|
||||||
setWidgetCreator([this] { return new FakeVimUserCommandsPageWidget; });
|
setWidgetCreator([] { return new FakeVimUserCommandsPageWidget; });
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
|
@@ -190,7 +190,6 @@ static bool isGitDirectory(const FilePath &path)
|
|||||||
}
|
}
|
||||||
|
|
||||||
GitGrep::GitGrep(GitClient *client)
|
GitGrep::GitGrep(GitClient *client)
|
||||||
: m_client(client)
|
|
||||||
{
|
{
|
||||||
m_widget = new QWidget;
|
m_widget = new QWidget;
|
||||||
auto layout = new QHBoxLayout(m_widget);
|
auto layout = new QHBoxLayout(m_widget);
|
||||||
|
@@ -32,7 +32,6 @@ public:
|
|||||||
|
|
||||||
private:
|
private:
|
||||||
GitGrepParameters gitParameters() const;
|
GitGrepParameters gitParameters() const;
|
||||||
GitClient *m_client;
|
|
||||||
QWidget *m_widget;
|
QWidget *m_widget;
|
||||||
Utils::FancyLineEdit *m_treeLineEdit;
|
Utils::FancyLineEdit *m_treeLineEdit;
|
||||||
QCheckBox *m_recurseSubmodules = nullptr;
|
QCheckBox *m_recurseSubmodules = nullptr;
|
||||||
|
@@ -512,7 +512,6 @@ void SyntaxHighlighter::formatSpaces(const QString &text, int start, int count)
|
|||||||
void SyntaxHighlighter::setFormatWithSpaces(const QString &text, int start, int count,
|
void SyntaxHighlighter::setFormatWithSpaces(const QString &text, int start, int count,
|
||||||
const QTextCharFormat &format)
|
const QTextCharFormat &format)
|
||||||
{
|
{
|
||||||
Q_D(const SyntaxHighlighter);
|
|
||||||
const QTextCharFormat visualSpaceFormat = whitespacified(format);
|
const QTextCharFormat visualSpaceFormat = whitespacified(format);
|
||||||
|
|
||||||
const int end = std::min(start + count, int(text.length()));
|
const int end = std::min(start + count, int(text.length()));
|
||||||
|
Reference in New Issue
Block a user