From 1c2e71920a895782e56895b4e00de283657c8bbc Mon Sep 17 00:00:00 2001 From: Robin Dunn Date: Wed, 11 Sep 2019 13:09:12 -0700 Subject: [PATCH] Remove commented-out asserts --- src/msw/graphicsd2d.cpp | 11 ----------- 1 file changed, 11 deletions(-) diff --git a/src/msw/graphicsd2d.cpp b/src/msw/graphicsd2d.cpp index 17b8909c60..19fa4b1411 100644 --- a/src/msw/graphicsd2d.cpp +++ b/src/msw/graphicsd2d.cpp @@ -1772,12 +1772,6 @@ void wxD2DPathData::AddPath(const wxGraphicsPathData* path) GeometryStateData curStateSrc; pathSrc->SaveGeometryState(curStateSrc); - // I think this assert is incorrect. We need to support paths where the end - // is not connected to the beginning. --Robin - // Raise warning if appended path has an open non-empty sub-path. - // wxASSERT_MSG( pathSrc->IsStateSafeForFlush(), - // wxS("Sub-path in appended path should be closed prior to this operation") ); - // Close appended geometry. pathSrc->Flush(); @@ -1897,11 +1891,6 @@ void wxD2DPathData::Transform(const wxGraphicsMatrixData* matrix) // So, Transform() can be safely called if path doesn't contain the open // sub-path or if open sub-path is empty. - // I think this assert is incorrect. We need to support paths where the end - // is not connected to the beginning. --Robin - // wxASSERT_MSG( IsStateSafeForFlush(), - // wxS("Consider closing sub-path before calling Transform()") ); - // Close current geometry. Flush();