Remove unused variables
This commit is contained in:
parent
8351b0481f
commit
79f26b947d
|
@ -206,7 +206,6 @@ void CoreOptionsDialog::buildLayout()
|
||||||
QFormLayout *form = NULL;
|
QFormLayout *form = NULL;
|
||||||
settings_t *settings = config_get_ptr();
|
settings_t *settings = config_get_ptr();
|
||||||
size_t opts = 0;
|
size_t opts = 0;
|
||||||
int i;
|
|
||||||
unsigned j, k;
|
unsigned j, k;
|
||||||
|
|
||||||
clearLayout();
|
clearLayout();
|
||||||
|
|
|
@ -106,10 +106,8 @@ void PlaylistEntryDialog::onPathClicked()
|
||||||
|
|
||||||
void PlaylistEntryDialog::loadPlaylistOptions()
|
void PlaylistEntryDialog::loadPlaylistOptions()
|
||||||
{
|
{
|
||||||
|
unsigned i, j;
|
||||||
core_info_list_t *core_info_list = NULL;
|
core_info_list_t *core_info_list = NULL;
|
||||||
const core_info_t *core_info = NULL;
|
|
||||||
unsigned i = 0;
|
|
||||||
int j = 0;
|
|
||||||
|
|
||||||
m_nameLineEdit->clear();
|
m_nameLineEdit->clear();
|
||||||
m_pathLineEdit->clear();
|
m_pathLineEdit->clear();
|
||||||
|
|
|
@ -79,10 +79,11 @@ void MainWindow::onPlaylistThumbnailDownloadFinished()
|
||||||
if (!redirectUrl.isEmpty())
|
if (!redirectUrl.isEmpty())
|
||||||
{
|
{
|
||||||
QByteArray redirectUrlArray = redirectUrl.toString().toUtf8();
|
QByteArray redirectUrlArray = redirectUrl.toString().toUtf8();
|
||||||
|
#if 0
|
||||||
const char *redirectUrlData = redirectUrlArray.constData();
|
const char *redirectUrlData = redirectUrlArray.constData();
|
||||||
|
|
||||||
/*RARCH_LOG("[Qt]: Thumbnail download got redirect with HTTP code %d: %s\n", code, redirectUrlData);*/
|
/*RARCH_LOG("[Qt]: Thumbnail download got redirect with HTTP code %d: %s\n", code, redirectUrlData);*/
|
||||||
|
#endif
|
||||||
reply->disconnect();
|
reply->disconnect();
|
||||||
reply->abort();
|
reply->abort();
|
||||||
reply->deleteLater();
|
reply->deleteLater();
|
||||||
|
@ -174,7 +175,9 @@ void MainWindow::onPlaylistThumbnailDownloadFinished()
|
||||||
void MainWindow::onPlaylistThumbnailDownloadProgress(qint64 bytesReceived, qint64 bytesTotal)
|
void MainWindow::onPlaylistThumbnailDownloadProgress(qint64 bytesReceived, qint64 bytesTotal)
|
||||||
{
|
{
|
||||||
QNetworkReply *reply = m_playlistThumbnailDownloadReply.data();
|
QNetworkReply *reply = m_playlistThumbnailDownloadReply.data();
|
||||||
|
#if 0
|
||||||
int progress = (bytesReceived / (float)bytesTotal) * 100.0f;
|
int progress = (bytesReceived / (float)bytesTotal) * 100.0f;
|
||||||
|
#endif
|
||||||
|
|
||||||
if (!reply)
|
if (!reply)
|
||||||
return;
|
return;
|
||||||
|
|
|
@ -587,7 +587,6 @@ void ShaderParamsDialog::onShaderResetParameter(QString parameter)
|
||||||
{
|
{
|
||||||
struct video_shader *menu_shader = NULL;
|
struct video_shader *menu_shader = NULL;
|
||||||
struct video_shader *video_shader = NULL;
|
struct video_shader *video_shader = NULL;
|
||||||
unsigned i;
|
|
||||||
|
|
||||||
getShaders(&menu_shader, &video_shader);
|
getShaders(&menu_shader, &video_shader);
|
||||||
|
|
||||||
|
@ -884,8 +883,7 @@ void ShaderParamsDialog::buildLayout()
|
||||||
struct video_shader *video_shader = NULL;
|
struct video_shader *video_shader = NULL;
|
||||||
struct video_shader *avail_shader = NULL;
|
struct video_shader *avail_shader = NULL;
|
||||||
const char *shader_path = NULL;
|
const char *shader_path = NULL;
|
||||||
int i;
|
unsigned i;
|
||||||
unsigned j;
|
|
||||||
bool hasPasses = false;
|
bool hasPasses = false;
|
||||||
|
|
||||||
getShaders(&menu_shader, &video_shader);
|
getShaders(&menu_shader, &video_shader);
|
||||||
|
|
|
@ -15,6 +15,7 @@ extern "C" {
|
||||||
#include "../../../version.h"
|
#include "../../../version.h"
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#undef USER_AGENT
|
||||||
#define USER_AGENT "RetroArch-WIMP/" PACKAGE_VERSION
|
#define USER_AGENT "RetroArch-WIMP/" PACKAGE_VERSION
|
||||||
#define PARTIAL_EXTENSION ".partial"
|
#define PARTIAL_EXTENSION ".partial"
|
||||||
#define THUMBNAIL_URL_HEADER "https://github.com/libretro-thumbnails/"
|
#define THUMBNAIL_URL_HEADER "https://github.com/libretro-thumbnails/"
|
||||||
|
|
|
@ -15,6 +15,7 @@ extern "C" {
|
||||||
#include "../../../version.h"
|
#include "../../../version.h"
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#undef TEMP_EXTENSION
|
||||||
#define USER_AGENT "RetroArch-WIMP/" PACKAGE_VERSION
|
#define USER_AGENT "RetroArch-WIMP/" PACKAGE_VERSION
|
||||||
#define PARTIAL_EXTENSION ".partial"
|
#define PARTIAL_EXTENSION ".partial"
|
||||||
#define TEMP_EXTENSION ".tmp"
|
#define TEMP_EXTENSION ".tmp"
|
||||||
|
|
|
@ -346,7 +346,6 @@ MainWindow::MainWindow(QWidget *parent) :
|
||||||
QHBoxLayout *gridProgressLayout = new QHBoxLayout();
|
QHBoxLayout *gridProgressLayout = new QHBoxLayout();
|
||||||
QLabel *gridProgressLabel = NULL;
|
QLabel *gridProgressLabel = NULL;
|
||||||
QHBoxLayout *gridFooterLayout = NULL;
|
QHBoxLayout *gridFooterLayout = NULL;
|
||||||
int i = 0;
|
|
||||||
|
|
||||||
qRegisterMetaType<QPointer<ThumbnailWidget> >("ThumbnailWidget");
|
qRegisterMetaType<QPointer<ThumbnailWidget> >("ThumbnailWidget");
|
||||||
qRegisterMetaType<retro_task_callback_t>("retro_task_callback_t");
|
qRegisterMetaType<retro_task_callback_t>("retro_task_callback_t");
|
||||||
|
|
Loading…
Reference in New Issue