From adb8a5508b23b8ce0061d104d6a8b0cf3f63ea14 Mon Sep 17 00:00:00 2001 From: Jakob Date: Mon, 3 Apr 2023 19:16:01 +0200 Subject: [PATCH] cleanup util --- EnvyUpdate/Util.cs | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/EnvyUpdate/Util.cs b/EnvyUpdate/Util.cs index 72df3c4..60eb27d 100644 --- a/EnvyUpdate/Util.cs +++ b/EnvyUpdate/Util.cs @@ -138,9 +138,6 @@ namespace EnvyUpdate case "pfid": xmlcontent = wc.DownloadString("https://www.nvidia.com/Download/API/lookupValueSearch.aspx?TypeID=3"); break; - case "osid": - xmlcontent = wc.DownloadString("https://www.nvidia.com/Download/API/lookupValueSearch.aspx?TypeID=4"); - break; default: break; } @@ -178,10 +175,10 @@ namespace EnvyUpdate int value = 0; int i = 0; int value1 = 0; - int value2 = 0; + int value2 = 0; //Two values are used to cover the eventuality of there being two Nvidia cards (unlikely) in a mobile device var names = xDoc.Descendants("Name"); - foreach (var name in names) + foreach (var name in names) // Looping through the XML Doc because the name is not the primary key { string sName = name.Value.ToString().ToLower(); if (sName == query)