mirror of
https://github.com/zoriya/octokit.net.git
synced 2026-06-09 21:09:51 +00:00
Remove AddContext() and ClearContexts() in favour of just using the List passed into the ctor
This commit is contained in:
committed by
Ryan Gribble
parent
7cf55f3398
commit
87bb4669e4
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user