зеркало из https://github.com/microsoft/Power-Fx.git
Remove dead code (#1233)
Remove HasField and HadFieldLogical APIs Those aren't used by PA Client
This commit is contained in:
Родитель
a3afc8df37
Коммит
3cddde71f3
|
@ -58,21 +58,6 @@ namespace Microsoft.PowerFx.Types
|
|||
return true;
|
||||
}
|
||||
|
||||
// Check for field existence, avoids the overhead of actually building the return type.
|
||||
internal bool HasFieldLogical(string logicalName)
|
||||
{
|
||||
return _type.TryGetType(new DName(logicalName), out _);
|
||||
}
|
||||
|
||||
internal bool HasField(string displayOrLogicalName)
|
||||
{
|
||||
Contracts.CheckNonEmpty(displayOrLogicalName, nameof(displayOrLogicalName));
|
||||
|
||||
return DType.TryGetDisplayNameForColumn(_type, displayOrLogicalName, out _) ||
|
||||
DType.TryGetLogicalNameForColumn(_type, displayOrLogicalName, out _) ||
|
||||
_type.TryGetType(new DName(displayOrLogicalName), out _);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Lookup for logical name and field for input display or logical name.
|
||||
/// If there is a conflict, it prioritizes logical name.
|
||||
|
|
Загрузка…
Ссылка в новой задаче