From 67c775afd62bd8136700ad9e93fa1c756ddda83d Mon Sep 17 00:00:00 2001 From: hjk Date: Mon, 30 Apr 2018 09:42:55 +0200 Subject: [PATCH] Python: Code cosmetics Remove some unnecessary #include and use a recently introduced RunConfiguration::builtTargetInfo() convenience function. Change-Id: I76750fd66ae2c268b68d225c62aad7d880256d07 Reviewed-by: Christian Stenger --- src/plugins/pythoneditor/pythoneditorplugin.cpp | 10 +--------- 1 file changed, 1 insertion(+), 9 deletions(-) diff --git a/src/plugins/pythoneditor/pythoneditorplugin.cpp b/src/plugins/pythoneditor/pythoneditorplugin.cpp index 451201437d5..5d9d9b4c099 100644 --- a/src/plugins/pythoneditor/pythoneditorplugin.cpp +++ b/src/plugins/pythoneditor/pythoneditorplugin.cpp @@ -35,9 +35,6 @@ #include #include -#include - -#include #include #include #include @@ -58,9 +55,7 @@ #include #include -#include #include -#include #include #include #include @@ -78,9 +73,6 @@ const char PythonMimeType[] = "text/x-python-project"; // ### FIXME const char PythonProjectId[] = "PythonProject"; const char PythonErrorTaskCategory[] = "Task.Category.Python"; -class PythonRunConfiguration; -class PythonProjectFile; - class PythonProject : public Project { Q_OBJECT @@ -287,7 +279,7 @@ PythonRunConfiguration::PythonRunConfiguration(Target *target, Core::Id id) void PythonRunConfiguration::updateTargetInformation() { - BuildTargetInfo bti = target()->applicationTargets().buildTargetInfo(buildKey()); + const BuildTargetInfo bti = buildTargetInfo(); const QString script = bti.targetFilePath.toString(); setDefaultDisplayName(tr("Run %1").arg(script)); extraAspect()->setValue(script);