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

@@ -45,11 +45,6 @@ namespace GitHub.DistributedTask.WebApi
m_matchedAgents = requestToBeCloned.m_matchedAgents.Select(x => x.Clone()).ToList();
}
if (requestToBeCloned.m_agentDelays?.Count > 0)
{
m_agentDelays = new List<TaskAgentDelaySource>(requestToBeCloned.m_agentDelays);
}
if (requestToBeCloned.ReservedAgent != null)
{
this.ReservedAgent = requestToBeCloned.ReservedAgent.Clone();
@@ -228,18 +223,6 @@ namespace GitHub.DistributedTask.WebApi
set;
}
/// <summary>
/// A list of demands required to fulfill this request.
/// </summary>
/// <value></value>
[DataMember(Order = 16, EmitDefaultValue = false)]
[Obsolete("No more demands, use labels", true)]
public IList<Demand> Demands
{
get;
set;
}
/// <summary>
/// The agent allocated for this request.
/// </summary>
@@ -332,23 +315,6 @@ namespace GitHub.DistributedTask.WebApi
set;
}
[DataMember(Order = 26, EmitDefaultValue = false)]
public List<TaskAgentDelaySource> AgentDelays
{
get
{
if (m_agentDelays == null)
{
m_agentDelays = new List<TaskAgentDelaySource>();
}
return m_agentDelays;
}
internal set
{
m_agentDelays = value;
}
}
[DataMember(Order = 27, EmitDefaultValue = false)]
public TimeSpan? ExpectedDuration
{
@@ -435,8 +401,6 @@ namespace GitHub.DistributedTask.WebApi
private List<TaskAgentReference> m_matchedAgents;
private List<TaskAgentDelaySource> m_agentDelays;
private IDictionary<String, String> m_requestAgentData;
[DataMember(Name = "MatchedAgents", Order = 18, EmitDefaultValue = false)]