From: Ludovic Henry Date: Wed, 24 Aug 2016 13:45:08 +0000 (+0200) Subject: [w32handle] Remove unused assertions X-Git-Url: http://wien.tomnetworks.com/gitweb/?a=commitdiff_plain;h=9f00edd1b4ade7b0076928523a72bd96b3d706dd;p=mono.git [w32handle] Remove unused assertions --- diff --git a/mono/utils/w32handle.c b/mono/utils/w32handle.c index bd98e37b702..5fd01a3db23 100644 --- a/mono/utils/w32handle.c +++ b/mono/utils/w32handle.c @@ -357,8 +357,6 @@ mono_w32handle_cleanup (void) static void mono_w32handle_init_handle (MonoW32HandleBase *handle, MonoW32HandleType type, gpointer handle_specific) { - g_assert (!shutting_down); - handle->type = type; handle->signalled = FALSE; handle->ref = 1; @@ -385,8 +383,6 @@ static guint32 mono_w32handle_new_internal (MonoW32HandleType type, static guint32 last = 0; gboolean retry = FALSE; - g_assert (!shutting_down); - /* A linear scan should be fast enough. Start from the last * allocation, assuming that handles are allocated more often * than they're freed. Leave the space reserved for file