refactor: remove some logs

main
taoria 3 years ago
parent 7f5001cb60
commit a0c1cf7d03
  1. 4
      TNode/TNodeCore/Runtime/RuntimeCache/RuntimeCache.cs

@ -121,11 +121,9 @@ namespace TNodeCore.RuntimeCache{
//Check if the type is implementing IPortTypeConversion<T1,T2> //Check if the type is implementing IPortTypeConversion<T1,T2>
if(type.BaseType is{IsGenericType: true} && type.BaseType.GetGenericTypeDefinition()==typeof(PortTypeConversion<,>)){ if(type.BaseType is{IsGenericType: true} && type.BaseType.GetGenericTypeDefinition()==typeof(PortTypeConversion<,>)){
//if it is, add it to the cache //if it is, add it to the cache
Debug.Log("find conversion");
CacheRuntimePortTypeConversion(type); CacheRuntimePortTypeConversion(type);
} }
else{ else{
Debug.Log(type);
} }
} }
@ -142,8 +140,6 @@ namespace TNodeCore.RuntimeCache{
var type1 = type.BaseType.GetGenericArguments()[0]; var type1 = type.BaseType.GetGenericArguments()[0];
var type2 = type.BaseType.GetGenericArguments()[1]; var type2 = type.BaseType.GetGenericArguments()[1];
Debug.Log(type1);
Debug.Log(type2);
var specificType = typeof(PortConverterHelper<,>).MakeGenericType(type1, type2); var specificType = typeof(PortConverterHelper<,>).MakeGenericType(type1, type2);
var instance = Activator.CreateInstance(specificType, type) as IPortConverterHelper; var instance = Activator.CreateInstance(specificType, type) as IPortConverterHelper;
if (instance == null){ if (instance == null){

Loading…
Cancel
Save