11// Copyright (c) Microsoft Corporation. All rights reserved. See License.txt in the project root for license information.
22
33using System ;
4- using Unity . Builder ;
54
65namespace Unity . Policy
76{
@@ -10,24 +9,11 @@ namespace Unity.Policy
109 /// </summary>
1110 public interface IPolicyList
1211 {
13- /// <summary>
14- /// Removes an individual policy type for a build key.
15- /// </summary>
16- /// <param name="policyInterface">The type of policy to remove.</param>
17- /// <param name="buildKey">The key the policy applies.</param>
18- void Clear ( Type policyInterface , object buildKey ) ;
19-
20- /// <summary>
21- /// Removes all policies from the list.
22- /// </summary>
23- void ClearAll ( ) ;
24-
2512 /// <summary>
2613 /// GetOrDefault the non default policy.
2714 /// </summary>
2815 /// <param name="policyInterface">The interface the policy is registered under.</param>
2916 /// <param name="buildKey">The key the policy applies to.</param>
30- /// <param name="localOnly">True if the search should be in the local policy list only; otherwise false to search up the parent chain.</param>
3117 /// <param name="containingPolicyList">The policy list in the chain that the searched for policy was found in, null if the policy was
3218 /// not found.</param>
3319 /// <returns>The policy in the list if present; returns null otherwise.</returns>
@@ -40,5 +26,16 @@ public interface IPolicyList
4026 /// <param name="policy">The policy to be registered.</param>
4127 /// <param name="buildKey">The key the policy applies.</param>
4228 void Set ( Type policyInterface , IBuilderPolicy policy , object buildKey = null ) ;
29+ /// <summary>
30+ /// Removes an individual policy type for a build key.
31+ /// </summary>
32+ /// <param name="policyInterface">The type of policy to remove.</param>
33+ /// <param name="buildKey">The key the policy applies.</param>
34+ void Clear ( Type policyInterface , object buildKey ) ;
35+
36+ /// <summary>
37+ /// Removes all policies from the list.
38+ /// </summary>
39+ void ClearAll ( ) ;
4340 }
4441}
0 commit comments