mirror of
				https://github.com/Ryujinx/Opentk.git
				synced 2025-11-04 15:05:07 +00:00 
			
		
		
		
	Removing some dead code in Bind
This change doesn't effect the output of Bind.
This commit is contained in:
		
							parent
							
								
									201849b888
								
							
						
					
					
						commit
						74822fb42f
					
				| 
						 | 
				
			
			@ -304,21 +304,14 @@ namespace Bind
 | 
			
		|||
                            p.CurrentType = param.GetAttribute("type", String.Empty).Trim();
 | 
			
		||||
                            p.Name = param.GetAttribute("name", String.Empty).Trim();
 | 
			
		||||
 | 
			
		||||
                            string element_count = param.GetAttribute("elementcount", String.Empty).Trim();
 | 
			
		||||
                            if (String.IsNullOrEmpty(element_count))
 | 
			
		||||
                            p.ComputeSize = param.GetAttribute("count", String.Empty).Trim();
 | 
			
		||||
 | 
			
		||||
                            int elementCount;
 | 
			
		||||
                            if (Int32.TryParse(p.ComputeSize, out elementCount))
 | 
			
		||||
                            {
 | 
			
		||||
                                element_count = param.GetAttribute("count", String.Empty).Trim();
 | 
			
		||||
                                if (!String.IsNullOrEmpty(element_count))
 | 
			
		||||
                                {
 | 
			
		||||
                                    int count;
 | 
			
		||||
                                    if (Int32.TryParse(element_count, out count))
 | 
			
		||||
                                    {
 | 
			
		||||
                                        p.ElementCount = count;
 | 
			
		||||
                                    }
 | 
			
		||||
                                }
 | 
			
		||||
                                p.ElementCount = elementCount;
 | 
			
		||||
                            }
 | 
			
		||||
 | 
			
		||||
                            p.ComputeSize = param.GetAttribute("count", String.Empty).Trim();
 | 
			
		||||
                            p.Flow = Parameter.GetFlowDirection(param.GetAttribute("flow", String.Empty).Trim());
 | 
			
		||||
 | 
			
		||||
                            d.Parameters.Add(p);
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
		Reference in a new issue