Removed field thinCliProtocol.dProgress because it was not implemented.

Signed-off-by: Konstantina Chremmou <konstantina.chremmou@citrix.com>
This commit is contained in:
Konstantina Chremmou 2022-05-06 12:01:19 +01:00
parent c226316632
commit a1a577fa22
2 changed files with 2 additions and 10 deletions

View File

@ -38,8 +38,7 @@ namespace ThinCLI
{
public static void Main(string[] args)
{
var tCliProtocol = new thinCLIProtocol(
i => { }, new Config());
var tCliProtocol = new thinCLIProtocol(new Config());
string body = "";
char[] eqsep = {'='};

View File

@ -52,11 +52,8 @@ namespace ThinCLI
public bool debug = false;
}
public delegate void delegateProgress(int i);
public class thinCLIProtocol
{
public delegateProgress dProgress;
public Config conf;
public string magic_string = "XenSource thin CLI protocol";
public int major = 0;
@ -64,11 +61,8 @@ namespace ThinCLI
public bool dropOut;
public List<string> EnteredParamValues;
public thinCLIProtocol(
delegateProgress dProgress,
Config conf)
public thinCLIProtocol(Config conf)
{
this.dProgress = dProgress;
this.conf = conf;
dropOut = false;
EnteredParamValues = new List<string>();
@ -317,7 +311,6 @@ namespace ThinCLI
break;
}
stream.Write(block, 0, n);
tCLIprotocol.dProgress(n);
}
}
}