Commit f6109b74 authored by Robert Loehning's avatar Robert Loehning Committed by Tim Jenssen

QmlDesigner: Remove unused variables

Change-Id: I66784f38fe91f42d5bc478fd41ee82c443ec0dbc
Reviewed-by: Tim Jenssen's avatarTim Jenssen <tim.jenssen@qt.io>
parent b9d26897
......@@ -132,13 +132,6 @@ FormEditorWidget::FormEditorWidget(FormEditorView *view)
addAction(m_rootHeightAction.data());
upperActions.append(m_rootHeightAction.data());
static const QList<Utils::Icon> icon = {
Utils::Icon({{":/baremetal/images/baremetaldevicesmall.png",
Utils::Theme::PanelTextColorDark}}, Utils::Icon::Tint),
Utils::Icon({{":/baremetal/images/baremetaldevice.png",
Utils::Theme::IconsBaseColor}})};
m_toolBox = new ToolBox(this);
fillLayout->addWidget(m_toolBox.data());
......
......@@ -51,8 +51,6 @@ public:
QPixmap pixmap(info.absoluteFilePath());
QImage image(info.absoluteFilePath());
if (pixmap.isNull())
return QFileIconProvider::icon(info);
......
......@@ -149,7 +149,6 @@ bool PuppetCreator::useOnlyFallbackPuppet() const
QString PuppetCreator::getStyleConfigFileName() const
{
#ifndef QMLDESIGNER_TEST
const QString qmlFileName = m_model->fileUrl().toLocalFile();
if (m_currentProject) {
for (const QString &fileName : m_currentProject->files(ProjectExplorer::Project::SourceFiles)) {
QFileInfo fileInfo(fileName);
......
......@@ -425,10 +425,6 @@ void DynamicPropertiesModel::updateValue(int row)
BindingProperty bindingProperty = bindingPropertyForRow(row);
if (bindingProperty.isBindingProperty()) {
const QString sourceNode = data(index(row, PropertyTypeRow)).toString();
const QString sourceProperty = data(index(row, PropertyValueRow)).toString();
const QString expression = data(index(row, PropertyValueRow)).toString();
RewriterTransaction transaction = connectionView()->beginRewriterTransaction(QByteArrayLiteral("DynamicPropertiesModel::updateValue"));
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment