mirror of
https://github.com/knah/VRCMelonAssistant.git
synced 2024-06-08 13:34:54 +12:00
remove redundant variables
This commit is contained in:
parent
1d30ce6515
commit
519d03c0f3
|
@ -43,8 +43,6 @@ namespace ModAssistant
|
|||
private static void BeatSaver(Uri uri)
|
||||
{
|
||||
string Key = uri.Host;
|
||||
|
||||
string json = string.Empty;
|
||||
BeatSaverApiResponse Response;
|
||||
|
||||
HttpWebRequest request = (HttpWebRequest)WebRequest.Create(BeatSaverURLPrefix + "/api/maps/detail/" + Key);
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
using System;
|
||||
using System;
|
||||
using System.Diagnostics;
|
||||
using System.IO;
|
||||
using System.Net;
|
||||
|
@ -17,7 +17,6 @@ namespace ModAssistant
|
|||
|
||||
public static bool CheckForUpdate()
|
||||
{
|
||||
string json = string.Empty;
|
||||
HttpWebRequest request = (HttpWebRequest)WebRequest.Create(APILatestURL);
|
||||
request.AutomaticDecompression = DecompressionMethods.GZip;
|
||||
request.UserAgent = "ModAssistant/" + App.Version;
|
||||
|
|
|
@ -110,9 +110,8 @@ namespace ModAssistant
|
|||
|
||||
public static string GetInstallDir()
|
||||
{
|
||||
string InstallDir = null;
|
||||
|
||||
InstallDir = Properties.Settings.Default.InstallFolder;
|
||||
string InstallDir = Properties.Settings.Default.InstallFolder;
|
||||
|
||||
if (!String.IsNullOrEmpty(InstallDir)
|
||||
&& Directory.Exists(InstallDir)
|
||||
&& Directory.Exists(Path.Combine(InstallDir, "Beat Saber_Data", "Plugins"))
|
||||
|
|
|
@ -51,7 +51,6 @@ namespace ModAssistant
|
|||
}
|
||||
|
||||
List<string> versions;
|
||||
string json = string.Empty;
|
||||
HttpWebRequest request = (HttpWebRequest)WebRequest.Create(Utils.Constants.BeatModsAPIUrl + "version");
|
||||
request.AutomaticDecompression = DecompressionMethods.GZip;
|
||||
request.UserAgent = "ModAssistant/" + App.Version;
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
using System;
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.IO;
|
||||
using System.Net;
|
||||
|
@ -195,7 +195,6 @@ namespace ModAssistant.Pages
|
|||
|
||||
public void PopulateModsList()
|
||||
{
|
||||
string json = string.Empty;
|
||||
HttpWebRequest request = (HttpWebRequest)WebRequest.Create(Utils.Constants.BeatModsAPIUrl + Utils.Constants.BeatModsModsOptions + "&gameVersion=" + MainWindow.GameVersion);
|
||||
request.AutomaticDecompression = DecompressionMethods.GZip;
|
||||
request.UserAgent = "ModAssistant/" + App.Version;
|
||||
|
|
Loading…
Reference in a new issue