Remove incorrect assert assumption

This commit is contained in:
Dean Herbert 2018-02-12 22:16:09 +09:00
parent 8b37fde15b
commit 64cda9fd0f
1 changed files with 0 additions and 2 deletions

View File

@ -1,7 +1,6 @@
// Copyright (c) 2007-2018 ppy Pty Ltd <contact@ppy.sh>.
// Licensed under the MIT Licence - https://raw.githubusercontent.com/ppy/osu/master/LICENCE
using System.Diagnostics;
using System.Threading;
using osu.Framework.Platform;
@ -42,7 +41,6 @@ public DatabaseWriteUsage GetForWrite()
{
Monitor.Enter(writeLock);
Trace.Assert(currentWriteUsages == 0, "Database writes in a bad state");
Interlocked.Increment(ref currentWriteUsages);
return new DatabaseWriteUsage(writeContext ?? (writeContext = threadContexts.Value), usageCompleted);