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

Skip to content

Commit 5c6c63d

Browse files
Remove SafeReflectionInvoker Part 2
1 parent 11ff386 commit 5c6c63d

File tree

3 files changed

+0
-95
lines changed

3 files changed

+0
-95
lines changed

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

Lines changed: 0 additions & 60 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
@@ -145,20 +145,6 @@ public virtual ShouldSerializeResult ShouldSerializeValue(object instance)
145145
return ShouldSerializeResult.Default;
146146
}
147147

148-
// vvvvv---- Unused members. Servicing policy is to retain these anyway. -----vvvvv
149-
[SuppressMessage("Microsoft.Performance", "CA1811:AvoidUncalledPrivateCode", Justification = "Retained per servicing policy.")]
150-
private static bool IsSystemXamlNonPublic(
151-
ref ThreeValuedBool methodIsSystemXamlNonPublic, MethodInfo method)
152-
{
153-
if (methodIsSystemXamlNonPublic == ThreeValuedBool.NotSet)
154-
{
155-
bool result = SafeReflectionInvoker.IsSystemXamlNonPublic(method);
156-
methodIsSystemXamlNonPublic = result ? ThreeValuedBool.True : ThreeValuedBool.False;
157-
}
158-
return methodIsSystemXamlNonPublic == ThreeValuedBool.True;
159-
}
160-
// ^^^^^----- End of unused members. -----^^^^^
161-
162148
private bool IsUnknown
163149
{
164150
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
@@ -25,10 +25,6 @@ public class XamlTypeInvoker
2525

2626
private ThreeValuedBool _isPublic;
2727

28-
// vvvvv---- Unused members. Servicing policy is to retain these anyway. -----vvvvv
29-
private ThreeValuedBool _isInSystemXaml;
30-
// ^^^^^----- End of unused members. -----^^^^^
31-
3228
protected XamlTypeInvoker()
3329
{
3430
}
@@ -217,23 +213,6 @@ public virtual IEnumerator GetItems(object instance)
217213
return (IEnumerator)getEnumMethod.Invoke(instance, s_emptyObjectArray);
218214
}
219215

220-
// vvvvv---- Unused members. Servicing policy is to retain these anyway. -----vvvvv
221-
private bool IsInSystemXaml
222-
{
223-
[SuppressMessage("Microsoft.Performance", "CA1811:AvoidUncalledPrivateCode", Justification = "Retained per servicing policy.")]
224-
get
225-
{
226-
if (_isInSystemXaml == ThreeValuedBool.NotSet)
227-
{
228-
Type type = _xamlType.UnderlyingType.UnderlyingSystemType;
229-
bool result = SafeReflectionInvoker.IsInSystemXaml(type);
230-
_isInSystemXaml = result ? ThreeValuedBool.True : ThreeValuedBool.False;
231-
}
232-
return _isInSystemXaml == ThreeValuedBool.True;
233-
}
234-
}
235-
// ^^^^^----- End of unused members. -----^^^^^
236-
237216
private bool IsPublic
238217
{
239218
get

0 commit comments

Comments
 (0)
0