[Clang Warnings] Remove unused variables
This commit is contained in:
parent
1f498266d8
commit
b9fb718822
@ -283,7 +283,6 @@ void GroupView::mousePressEvent(QMouseEvent *event)
|
||||
|
||||
m_pressedIndex = index;
|
||||
m_pressedAlreadySelected = selectionModel()->isSelected(m_pressedIndex);
|
||||
QItemSelectionModel::SelectionFlags selection_flags = selectionCommand(index, event);
|
||||
m_pressedPosition = geometryPos;
|
||||
|
||||
m_pressedCategory = categoryAt(geometryPos);
|
||||
|
@ -85,12 +85,9 @@ void VersionListView::paintEvent(QPaintEvent *event)
|
||||
|
||||
void VersionListView::paintInfoLabel(QPaintEvent *event)
|
||||
{
|
||||
int scrollInterval = 500;
|
||||
|
||||
//calculate the rect for the overlay
|
||||
QPainter painter(viewport());
|
||||
painter.setRenderHint(QPainter::Antialiasing, true);
|
||||
const QChar letter = 'Q';
|
||||
QFont font("sans", 20);
|
||||
font.setBold(true);
|
||||
|
||||
|
@ -452,7 +452,6 @@ void MinecraftProcess::arm()
|
||||
}
|
||||
|
||||
m_instance->setLastLaunch();
|
||||
auto &settings = m_instance->settings();
|
||||
|
||||
QStringList args = javaArguments();
|
||||
|
||||
|
@ -411,7 +411,7 @@ QVariant ModList::data(const QModelIndex &index, int role) const
|
||||
switch (role)
|
||||
{
|
||||
case Qt::DisplayRole:
|
||||
switch (index.column())
|
||||
switch (column)
|
||||
{
|
||||
case NameColumn:
|
||||
return mods[row].name();
|
||||
@ -426,7 +426,7 @@ QVariant ModList::data(const QModelIndex &index, int role) const
|
||||
return mods[row].mmc_id();
|
||||
|
||||
case Qt::CheckStateRole:
|
||||
switch (index.column())
|
||||
switch (column)
|
||||
{
|
||||
case ActiveColumn:
|
||||
return mods[row].enabled() ? Qt::Checked : Qt::Unchecked;
|
||||
|
Loading…
Reference in New Issue
Block a user