From 88aa6a1e8e649c0fb5381ebcd06fb88b6fee254c Mon Sep 17 00:00:00 2001 From: William Joye Date: Wed, 10 Jan 2018 17:53:31 -0500 Subject: clean up marker code --- tksao/frame/polygon.C | 47 ++++++++++++----------------------------------- 1 file changed, 12 insertions(+), 35 deletions(-) diff --git a/tksao/frame/polygon.C b/tksao/frame/polygon.C index 07b1eee..650bd83 100644 --- a/tksao/frame/polygon.C +++ b/tksao/frame/polygon.C @@ -546,42 +546,19 @@ void Polygon::listSAOtng(ostream& str, Coord::CoordSystem sys, break; default: if (ptr->hasWCSCel(sys)) { - switch (format) { - case Coord::DEGREES: - { - str << type_ << '('; - int first=1; - vertex.head(); - do { - if (!first) - str << ','; - first=0; - - Vector vv = ptr->mapFromRef(vertex.current()->vector*mm,sys,sky); - str << setprecision(10) << vv; - } - while (vertex.next()); - str << ')'; - } - break; - case Coord::SEXAGESIMAL: - { - str << type_ << '('; - int first=1; - vertex.head(); - do { - if (!first) - str << ','; - first=0; - - listRADEC(ptr,vertex.current()->vector*mm,sys,sky,format); - str << ra << ',' << dec; - } - while (vertex.next()); - str << ')'; - } - break; + str << type_ << '('; + int first=1; + vertex.head(); + do { + if (!first) + str << ','; + first=0; + + listRADEC(ptr,vertex.current()->vector*mm,sys,sky,format); + str << ra << ',' << dec; } + while (vertex.next()); + str << ')'; } } -- cgit v0.12