From 46a7633e0040bbe2797b54053056b6b7bf0d72a9 Mon Sep 17 00:00:00 2001 From: kevin Date: Tue, 29 Dec 2020 11:21:00 -0500 Subject: [PATCH] cwSvg.h/cpp : Removed unused flags from svg::write(). --- cwSvg.cpp | 2 -- cwSvg.h | 2 +- 2 files changed, 1 insertion(+), 3 deletions(-) diff --git a/cwSvg.cpp b/cwSvg.cpp index 2521848..fe8fab7 100644 --- a/cwSvg.cpp +++ b/cwSvg.cpp @@ -738,9 +738,7 @@ cw::rc_t cw::svg::write( handle_t h, const char* outFn, const char* cssFn, unsig ele_t* e = p->eleL; bool standAloneFl = cwIsFlag(flags,kStandAloneFl); bool panZoomFl = cwIsFlag(flags,kPanZoomFl); - //bool genInlineStyleFl = cwIsFlag(flags,kGenInlineStyleFl); bool genCssFileFl = cwIsFlag(flags,kGenCssFileFl) && cssFn!=nullptr; - //bool drawFrameFl = cwIsFlag(flags,kDrawFrameFl); file::handle_t fH; diff --git a/cwSvg.h b/cwSvg.h index 8f294e6..77a4862 100644 --- a/cwSvg.h +++ b/cwSvg.h @@ -97,7 +97,7 @@ namespace cw rc_t image( handle_t h, const float* xM, unsigned rowN, unsigned colN, unsigned pixSize, unsigned cmapId ); // Write the SVG file. - enum { kStandAloneFl=0x01, kPanZoomFl=0x02, kGenCssFileFl=0x04, kGenInlineStyleFl=0x08, kDrawFrameFl=0x10 }; + enum { kStandAloneFl=0x01, kPanZoomFl=0x02, kGenCssFileFl=0x04 }; rc_t write( handle_t h, const char* outFn, const char* cssFn, unsigned flags, double bordL=5, double bordT=5, double bordR=5, double bordB=5 ); rc_t test( const char* outFn, const char* cssFn );