forked from qt-creator/qt-creator
Remove some unused variables & includes
They are set and modified, but never read. Change-Id: I6f21ae325e21513678f1534cd05e1a2470b9627b Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
This commit is contained in:
@@ -5,7 +5,6 @@
|
|||||||
|
|
||||||
#include "cmakeprojectconstants.h"
|
#include "cmakeprojectconstants.h"
|
||||||
#include "cmakeprojectmanagertr.h"
|
#include "cmakeprojectmanagertr.h"
|
||||||
#include "cmakeprojectplugin.h"
|
|
||||||
#include "cmakespecificsettings.h"
|
#include "cmakespecificsettings.h"
|
||||||
#include "fileapiparser.h"
|
#include "fileapiparser.h"
|
||||||
#include "projecttreehelper.h"
|
#include "projecttreehelper.h"
|
||||||
@@ -21,6 +20,7 @@
|
|||||||
#include <projectexplorer/projecttree.h>
|
#include <projectexplorer/projecttree.h>
|
||||||
|
|
||||||
#include <QDir>
|
#include <QDir>
|
||||||
|
#include <QLoggingCategory>
|
||||||
|
|
||||||
using namespace ProjectExplorer;
|
using namespace ProjectExplorer;
|
||||||
using namespace Utils;
|
using namespace Utils;
|
||||||
@@ -342,7 +342,6 @@ RawProjectParts generateRawProjectParts(const PreprocessedData &input,
|
|||||||
{
|
{
|
||||||
RawProjectParts rpps;
|
RawProjectParts rpps;
|
||||||
|
|
||||||
int counter = 0;
|
|
||||||
for (const TargetDetails &t : input.targetDetails) {
|
for (const TargetDetails &t : input.targetDetails) {
|
||||||
QDir sourceDir(sourceDirectory.toString());
|
QDir sourceDir(sourceDirectory.toString());
|
||||||
bool needPostfix = t.compileGroups.size() > 1;
|
bool needPostfix = t.compileGroups.size() > 1;
|
||||||
@@ -375,7 +374,6 @@ RawProjectParts generateRawProjectParts(const PreprocessedData &input,
|
|||||||
qtcPchFile = "qtc_cmake_pch.hxx";
|
qtcPchFile = "qtc_cmake_pch.hxx";
|
||||||
}
|
}
|
||||||
|
|
||||||
++counter;
|
|
||||||
RawProjectPart rpp;
|
RawProjectPart rpp;
|
||||||
rpp.setProjectFileLocation(t.sourceDir.pathAppended("CMakeLists.txt").toString());
|
rpp.setProjectFileLocation(t.sourceDir.pathAppended("CMakeLists.txt").toString());
|
||||||
rpp.setBuildSystemTarget(t.name);
|
rpp.setBuildSystemTarget(t.name);
|
||||||
|
|||||||
@@ -460,7 +460,6 @@ Abi Abi::abiFromTargetTriplet(const QString &triple)
|
|||||||
OSFlavor flavor = UnknownFlavor;
|
OSFlavor flavor = UnknownFlavor;
|
||||||
BinaryFormat format = UnknownFormat;
|
BinaryFormat format = UnknownFormat;
|
||||||
unsigned char width = 0;
|
unsigned char width = 0;
|
||||||
int unknownCount = 0;
|
|
||||||
|
|
||||||
for (const QString &p : parts) {
|
for (const QString &p : parts) {
|
||||||
if (p == "unknown" || p == "pc"
|
if (p == "unknown" || p == "pc"
|
||||||
@@ -623,8 +622,6 @@ Abi Abi::abiFromTargetTriplet(const QString &triple)
|
|||||||
os = BareMetalOS;
|
os = BareMetalOS;
|
||||||
flavor = GenericFlavor;
|
flavor = GenericFlavor;
|
||||||
format = ElfFormat;
|
format = ElfFormat;
|
||||||
} else {
|
|
||||||
++unknownCount;
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user