Removing some dead code in Bind
This change doesn't effect the output of Bind.
This commit is contained in:
parent
201849b888
commit
74822fb42f
1 changed files with 5 additions and 12 deletions
|
@ -304,21 +304,14 @@ namespace Bind
|
||||||
p.CurrentType = param.GetAttribute("type", String.Empty).Trim();
|
p.CurrentType = param.GetAttribute("type", String.Empty).Trim();
|
||||||
p.Name = param.GetAttribute("name", String.Empty).Trim();
|
p.Name = param.GetAttribute("name", String.Empty).Trim();
|
||||||
|
|
||||||
string element_count = param.GetAttribute("elementcount", String.Empty).Trim();
|
p.ComputeSize = param.GetAttribute("count", String.Empty).Trim();
|
||||||
if (String.IsNullOrEmpty(element_count))
|
|
||||||
|
int elementCount;
|
||||||
|
if (Int32.TryParse(p.ComputeSize, out elementCount))
|
||||||
{
|
{
|
||||||
element_count = param.GetAttribute("count", String.Empty).Trim();
|
p.ElementCount = elementCount;
|
||||||
if (!String.IsNullOrEmpty(element_count))
|
|
||||||
{
|
|
||||||
int count;
|
|
||||||
if (Int32.TryParse(element_count, out count))
|
|
||||||
{
|
|
||||||
p.ElementCount = count;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
p.ComputeSize = param.GetAttribute("count", String.Empty).Trim();
|
|
||||||
p.Flow = Parameter.GetFlowDirection(param.GetAttribute("flow", String.Empty).Trim());
|
p.Flow = Parameter.GetFlowDirection(param.GetAttribute("flow", String.Empty).Trim());
|
||||||
|
|
||||||
d.Parameters.Add(p);
|
d.Parameters.Add(p);
|
||||||
|
|
Loading…
Reference in a new issue