Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Remove two meaningless asserts.
  • Loading branch information
teo-tsirpanis committed Apr 19, 2022
commit 18093b816481823c8ae38c26f27432ef5aa81827
Original file line number Diff line number Diff line change
@@ -1,10 +1,7 @@
// Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the MIT license.

using System.ComponentModel;
using System.Diagnostics;
using System.Diagnostics.CodeAnalysis;
using System.Runtime.InteropServices;
using Microsoft.Win32;

namespace System.Drawing.Internal
Expand Down Expand Up @@ -39,7 +36,6 @@ internal static void Add(ISystemColorTracker obj)

if (!addedTracker)
{
Debug.Assert(RuntimeInformation.IsOSPlatform(OSPlatform.Windows));
addedTracker = true;
SystemEvents.UserPreferenceChanged += new UserPreferenceChangedEventHandler(OnUserPreferenceChanged);
}
Expand Down Expand Up @@ -132,8 +128,6 @@ private static void GarbageCollectList()

private static void OnUserPreferenceChanged(object sender, UserPreferenceChangedEventArgs e)
{
Debug.Assert(RuntimeInformation.IsOSPlatform(OSPlatform.Windows));

// Update pens and brushes
if (e.Category == UserPreferenceCategory.Color)
{
Expand Down