Skip to content

Commit

Permalink
Bug 1844908 - Remove pre-Win10-specific codepath from memory/. r=glan…
Browse files Browse the repository at this point in the history
  • Loading branch information
vyv03354 committed Jul 26, 2023
1 parent 1518105 commit 4a82024
Showing 1 changed file with 0 additions and 6 deletions.
6 changes: 0 additions & 6 deletions memory/volatile/VolatileBufferWindows.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@
#include "mozilla/Assertions.h"
#include "mozilla/DebugOnly.h"
#include "mozilla/mozalloc.h"
#include "mozilla/WindowsVersion.h"

#include <windows.h>

Expand Down Expand Up @@ -40,11 +39,6 @@ bool VolatileBuffer::Init(size_t aSize, size_t aAlignment) {
goto heap_alloc;
}

static bool sUndoSupported = IsWin8OrLater();
if (!sUndoSupported) {
goto heap_alloc;
}

mBuf = VirtualAllocEx(GetCurrentProcess(), nullptr, mSize,
MEM_COMMIT | MEM_RESERVE, PAGE_READWRITE);
if (mBuf) {
Expand Down

0 comments on commit 4a82024

Please sign in to comment.