delete un-used code. (#218)

This commit is contained in:
Tingluo Huang
2019-12-16 17:05:26 -05:00
committed by GitHub
parent c3c66bb14a
commit d0a4a41a63
582 changed files with 155 additions and 66274 deletions

View File

@@ -146,26 +146,6 @@ namespace GitHub.DistributedTask.Pipelines
/// </summary>
internal Boolean IsLiteral => String.IsNullOrEmpty(m_expression);
/// <summary>
/// Retrieves the referenced value from the provided execution context.
/// </summary>
/// <param name="context">The execution context used for variable resolution</param>
/// <returns>The value of the variable if found; otherwise, null</returns>
public ExpressionResult<T> GetValue(IPipelineContext context = null)
{
if (this.IsLiteral)
{
return new ExpressionResult<T>(m_literalValue, containsSecrets: false);
}
if (context != null)
{
return context.Evaluate<T>(m_expression);
}
return null;
}
/// <summary>
/// Converts the value to a string representation.
/// </summary>