Removed unused local vars. Slightly refactored code.

This commit is contained in:
23rd
2019-05-04 20:39:58 +03:00
committed by pajlada
parent 2d21bb0695
commit efec76df5b
10 changed files with 4 additions and 36 deletions
-7
View File
@@ -36,8 +36,6 @@ namespace {
QString getStreamlinkProgram()
{
auto app = getApp();
if (getSettings()->streamlinkUseCustomPath)
{
return getSettings()->streamlinkPath + "/" + getBinaryName();
@@ -66,7 +64,6 @@ namespace {
{
static QErrorMessage *msg = new QErrorMessage;
auto app = getApp();
if (getSettings()->streamlinkUseCustomPath)
{
msg->showMessage(
@@ -172,8 +169,6 @@ void getStreamQualities(const QString &channelURL,
void openStreamlink(const QString &channelURL, const QString &quality,
QStringList extraArguments)
{
auto app = getApp();
QStringList arguments;
QString additionalOptions = getSettings()->streamlinkOpts.getValue();
@@ -202,8 +197,6 @@ void openStreamlink(const QString &channelURL, const QString &quality,
void openStreamlinkForChannel(const QString &channel)
{
auto app = getApp();
QString channelURL = "twitch.tv/" + channel;
QString preferredQuality = getSettings()->preferredQuality;