8000 Remove SafeReflectionInvoker Part 2 · dotnet/wpf@c2174ce · GitHub
[go: up one dir, main page]

Skip to content

Commit c2174ce

Browse files
Remove SafeReflectionInvoker Part 2
1 parent 699fecf commit c2174ce

File tree

3 files changed

+0
-97
lines changed

3 files changed

+0
-97
lines changed

src/Microsoft.DotNet.Wpf/src/System.Xaml/System/Xaml/Schema/SafeReflectionInvoker.cs

Lines changed: 0 additions & 62 deletions
This file was deleted.

src/Microsoft.DotNet.Wpf/src/System.Xaml/System/Xaml/Schema/XamlMemberInvoker.cs

Lines changed: 0 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -147,20 +147,6 @@ public virtual ShouldSerializeResult ShouldSerializeValue(object instance)
147147
return ShouldSerializeResult.Default;
148148
}
149149

150-
// vvvvv---- Unused members. Servicing policy is to retain these anyway. -----vvvvv
151-
[SuppressMessage("Microsoft.Performance", "CA1811:AvoidUncalledPrivateCode", Justification = "Retained per servicing policy.")]
152-
private static bool IsSystemXamlNonPublic(
153-
ref ThreeValuedBool methodIsSystemXamlNonPublic, MethodInfo method)
154-
{
155-
if (methodIsSystemXamlNonPublic == ThreeValuedBool.NotSet)
156-
{
157-
bool result = SafeReflectionInvoker.IsSystemXamlNonPublic(method);
158-
methodIsSystemXamlNonPublic = result ? ThreeValuedBool.True : ThreeValuedBool.False;
159-
}
160-
return methodIsSystemXamlNonPublic == ThreeValuedBool.True;
161-
}
162-
// ^^^^^----- End of unused members. -----^^^^^
163-
164150
private bool IsUnknown
165151
{
166152
get { return _member == null || _member.UnderlyingMember == null; }

src/Microsoft.DotNet.Wpf/src/System.Xaml/System/Xaml/Schema/XamlTypeInvoker.cs

Lines changed: 0 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -27,10 +27,6 @@ public class XamlTypeInvoker
2727

2828
private ThreeValuedBool _isPublic;
2929

30-
// vvvvv---- Unused members. Servicing policy is to retain these anyway. -----vvvvv
31-
private ThreeValuedBool _isInSystemXaml;
32-
// ^^^^^----- End of unused members. -----^^^^^
33-
3430
protected XamlTypeInvoker()
3531
{
3632
}
@@ -226,23 +222,6 @@ public virtual IEnumerator GetItems(object instance)
226222
return (IEnumerator)getEnumMethod.Invoke(instance, s_emptyObjectArray);
227223
}
228224

229-
// vvvvv---- Unused members. Servicing policy is to retain these anyway. -----vvvvv
230-
private bool IsInSystemXaml
231-
{
232-
[SuppressMessage("Microsoft.Performance", "CA1811:AvoidUncalledPrivateCode", Justification = "Retained per servicing policy.")]
233-
get
234-
{
235-
if (_isInSystemXaml == ThreeValuedBool.NotSet)
236-
{
237-
Type type = _xamlType.UnderlyingType.UnderlyingSystemType;
238-
bool result = SafeReflectionInvoker.IsInSystemXaml(type);
239-
_isInSystemXaml = result ? ThreeValuedBool.True : ThreeValuedBool.False;
240-
}
241-
return _isInSystemXaml == ThreeValuedBool.True;
242-
}
243-
}
244-
// ^^^^^----- End of unused members. -----^^^^^
245-
246225
private bool IsPublic
247226
{
248227
get

0 commit comments

Comments
 (0)
0