Skip to content

Commit

Permalink
CleanUp
Browse files Browse the repository at this point in the history
  • Loading branch information
harliq committed Feb 7, 2022
1 parent 1c49624 commit 76824e7
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 25 deletions.
19 changes: 0 additions & 19 deletions WeenieFab/WeenieFab/Decode.cs
Original file line number Diff line number Diff line change
Expand Up @@ -63,25 +63,6 @@ public static DataTable DecodeInstanceID(string integerblob, string pattern)
string description = match.Groups[4].ToString();
DataRow dr = tempDataTable.NewRow();

//// Check for Hex
//int iidValue = 0;
//string checkHex = "";
//if (match.Groups[3].ToString().Contains("0x"))
//{
// checkHex = match.Groups[3].ToString().Replace("0x", "");
// iidValue = MainWindow.ConvertHexToDecimal(checkHex);
//}
//else if (match.Groups[3].ToString().Contains("0X"))
//{
// checkHex = match.Groups[3].ToString().Replace("0X", "");
// iidValue = MainWindow.ConvertHexToDecimal(checkHex);
//}
//else
//{
// checkHex = match.Groups[3].ToString();
// iidValue = MainWindow.ConvertToInteger(checkHex);
//}

long iidValue = CheckHex(match.Groups[3].ToString());

dr[0] = MainWindow.ConvertToInteger(match.Groups[2].ToString());
Expand Down
7 changes: 1 addition & 6 deletions WeenieFab/WeenieFab/TableToSql.cs
Original file line number Diff line number Diff line change
Expand Up @@ -126,12 +126,7 @@ public static string ConvertStringTable(DataTable dt, string wcid, string header
sqltext = header + $"\nVALUES";
foreach (DataRow row in dt.Rows)
{
//string sValue = "";
//string sValueCheck = row[1].ToString();
//if (sValueCheck.Contains("'"))
// sValue = "\"" + row[1] + "\"";
//else
// sValue = "'" + row[1] + "'";

string tempWeenieString = row[1].ToString();
string finalWeenieString = "";
if (tempWeenieString.Contains("''"))
Expand Down

0 comments on commit 76824e7

Please sign in to comment.