Removing some dead code in Bind

This change doesn't effect the output of Bind.
This commit is contained in:
Fraser Waters 2017-10-04 20:00:53 +01:00
parent 201849b888
commit 74822fb42f

View file

@ -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);