Skip to content

Commit

Permalink
removes obsolete constructors from BranchProtectionUpdateSettings and…
Browse files Browse the repository at this point in the history
… UpdateTeam request models
  • Loading branch information
ryangribble committed Mar 6, 2018
1 parent 2a91a41 commit 8572d2f
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 27 deletions.
15 changes: 0 additions & 15 deletions Octokit/Models/Request/BranchProtectionUpdate.cs
Original file line number Diff line number Diff line change
Expand Up @@ -64,21 +64,6 @@ public BranchProtectionSettingsUpdate(bool enforceAdmins)
EnforceAdmins = enforceAdmins;
}

/// <summary>
/// Create a BranchProtection update request
/// </summary>
/// <param name="requiredStatusChecks">Specifies the requested status check settings. Pass null to disable status checks</param>
/// <param name="restrictions">Specifies the requested push access restrictions (applies only to Organization owned repositories). Pass null to disable push access restrictions</param>
/// <param name="enforceAdmins">Specifies whether the protections applied to this branch also apply to repository admins</param>
[Obsolete("This constructor will be removed for housekeeping purposes, please use another ctor")]
public BranchProtectionSettingsUpdate(BranchProtectionRequiredStatusChecksUpdate requiredStatusChecks, BranchProtectionPushRestrictionsUpdate restrictions, bool enforceAdmins)
{
RequiredStatusChecks = requiredStatusChecks;
RequiredPullRequestReviews = null;
Restrictions = restrictions;
EnforceAdmins = enforceAdmins;
}

/// <summary>
/// Create a BranchProtection update request
/// </summary>
Expand Down
12 changes: 0 additions & 12 deletions Octokit/Models/Request/UpdateTeam.cs
Original file line number Diff line number Diff line change
Expand Up @@ -19,18 +19,6 @@ public UpdateTeam(string name)
Name = name;
}

/// <summary>
/// Initializes a new instance of the <see cref="UpdateTeam"/> class.
/// </summary>
/// <param name="name">The updated team name.</param>
/// <param name="permission">The permission.</param>
[Obsolete("This constructor will be removed for housekeeping purposes")]
public UpdateTeam(string name, Permission permission)
{
Name = name;
Permission = permission;
}

/// <summary>
/// The name of the team (required).
/// </summary>
Expand Down

0 comments on commit 8572d2f

Please sign in to comment.