Remove AddContext() and ClearContexts() in favour of just using the List passed into the ctor

This commit is contained in:
Ryan Gribble
2015-12-14 11:51:58 +10:00
committed by Ryan Gribble
parent 7cf55f3398
commit 87bb4669e4
2 changed files with 6 additions and 43 deletions
@@ -56,37 +56,6 @@ namespace Octokit
Contexts = contexts;
}
/// <summary>
/// Adds the specified context to the required status checks.
/// </summary>
/// <param name="name">The name of the context.</param>
public void AddContext(string name)
{
// lazily create the contexts array
if (Contexts == null)
{
Contexts = new List<string>();
}
Contexts.Add(name);
}
/// <summary>
/// Clears all the contexts.
/// </summary>
public void ClearContexts()
{
// lazily create the contexts array
if (Contexts == null)
{
Contexts = new List<string>();
}
else
{
Contexts.Clear();
}
}
internal string DebuggerDisplay
{
get