Fix unused variables

In almost all cases these can be removed. The only exception is in
ShaderViewer.cpp, where regIdx should have been used.
This commit is contained in:
Cory Bloor
2017-11-18 00:17:06 +01:00
committed by Baldur Karlsson
parent b227229d9f
commit 58b628ee8b
9 changed files with 2 additions and 16 deletions
-2
View File
@@ -2264,8 +2264,6 @@ void BufferViewer::configureMeshColumns()
else
m_ModelVSIn->numRows = draw->numIndices;
QVector<BoundVBuffer> vbs = m_Ctx.CurPipelineState().GetVBuffers();
Viewport vp = m_Ctx.CurPipelineState().GetViewport(0);
m_Config.fov = ui->fovGuess->value();
@@ -529,7 +529,6 @@ void TextureSaveDialog::on_browse_clicked()
QString filename =
RDDialog::getSaveFileName(this, tr("Save Texture As"), QString(), filter, selectedFilter);
QFileInfo checkFile(filename);
if(!filename.isEmpty())
{
ui->filename->setText(filename);
-1
View File
@@ -1723,7 +1723,6 @@ void MainWindow::on_action_Settings_triggered()
void MainWindow::on_action_View_Documentation_triggered()
{
QFileInfo fi(QGuiApplication::applicationFilePath());
QDir curDir = QFileInfo(QGuiApplication::applicationFilePath()).absoluteDir();
if(fi.absoluteDir().exists(lit("renderdoc.chm")))
QDesktopServices::openUrl(
+1 -1
View File
@@ -515,7 +515,7 @@ void ShaderViewer::debugShader(const ShaderBindpointMapping *bind, const ShaderR
s.systemValue == ShaderBuiltin::Undefined ? QString::number(s.regIndex) : lit("-");
ui->inputSig->addTopLevelItem(new RDTreeWidgetItem(
{name, semIdx, QString::number(s.regIndex), TypeString(s), ToQStr(s.systemValue),
{name, semIdx, regIdx, TypeString(s), ToQStr(s.systemValue),
GetComponentString(s.regChannelMask), GetComponentString(s.channelUsedMask)}));
}
-1
View File
@@ -858,7 +858,6 @@ void TimelineBar::paintMarkers(QPainter &p, const QVector<Marker> &markers,
if(elided == tooshort)
elided = QString();
QRectF textRect = r;
r.setLeft(qRound(r.left() + margin));
p.drawText(r, elided, to);