From ac83733b590f3c0750bea1de3556ceb24fa0a4b1 Mon Sep 17 00:00:00 2001 From: jbzdarkid Date: Mon, 25 Nov 2019 21:10:50 -0800 Subject: Using PCH to clean up includes --- Source/PuzzleSerializer.cpp | 16 +--------------- 1 file changed, 1 insertion(+), 15 deletions(-) (limited to 'Source/PuzzleSerializer.cpp') diff --git a/Source/PuzzleSerializer.cpp b/Source/PuzzleSerializer.cpp index 7461f7b..33f6da6 100644 --- a/Source/PuzzleSerializer.cpp +++ b/Source/PuzzleSerializer.cpp @@ -1,6 +1,6 @@ +#include "pch.h" #include "PuzzleSerializer.h" #include "Memory.h" -#include #pragma warning (disable:26451) #pragma warning (disable:26812) @@ -65,16 +65,6 @@ void PuzzleSerializer::WritePuzzle(const Puzzle& p, int id) { WriteSequence(p, id); WriteSymmetry(p, id); -#ifndef NDEBUG - int maxDots = _memory->ReadEntityData(id, NUM_DOTS, 1)[0]; - assert(_intersectionFlags.size() <= maxDots); - assert(_intersectionLocations.size() <= maxDots*2); - - int maxConnections = _memory->ReadEntityData(id, NUM_CONNECTIONS, 1)[0]; - assert(_connectionsA.size() <= maxConnections); - assert(_connectionsB.size() <= maxConnections); -#endif - _memory->WriteEntityData(id, GRID_SIZE_X, {(p.width + 1)/2}); _memory->WriteEntityData(id, GRID_SIZE_Y, {(p.height + 1)/2}); _memory->WriteEntityData(id, NUM_DOTS, {static_cast(_intersectionFlags.size())}); @@ -455,10 +445,6 @@ void PuzzleSerializer::WriteDecorations(const Puzzle& p, int id) { } } -#ifndef NDEBUG - int maxDecorations = _memory->ReadEntityData(id, NUM_DECORATIONS, 1)[0]; - assert(decorations.size() < maxDecorations); -#endif _memory->WriteEntityData(id, NUM_DECORATIONS, {static_cast(decorations.size())}); _memory->WriteArray(id, DECORATIONS, decorations); } -- cgit 1.4.1