diff options
author | William Joye <wjoye@cfa.harvard.edu> | 2018-01-10 22:45:03 (GMT) |
---|---|---|
committer | William Joye <wjoye@cfa.harvard.edu> | 2018-01-10 22:45:03 (GMT) |
commit | 61f0822f0ca5af76f7f93e650a6cd9eb9a40a861 (patch) | |
tree | e968f9b64a6bff099575f70bb852b67de07ddffd /tksao/frame/text.C | |
parent | 40c0ac7dfb8540e366da6154f13e946b33d2d935 (diff) | |
download | blt-61f0822f0ca5af76f7f93e650a6cd9eb9a40a861.zip blt-61f0822f0ca5af76f7f93e650a6cd9eb9a40a861.tar.gz blt-61f0822f0ca5af76f7f93e650a6cd9eb9a40a861.tar.bz2 |
clean up marker code
Diffstat (limited to 'tksao/frame/text.C')
-rw-r--r-- | tksao/frame/text.C | 29 |
1 files changed, 4 insertions, 25 deletions
diff --git a/tksao/frame/text.C b/tksao/frame/text.C index 6cc123a..d66eb7a 100644 --- a/tksao/frame/text.C +++ b/tksao/frame/text.C @@ -226,18 +226,8 @@ void Text::list(ostream& str, Coord::CoordSystem sys, Coord::SkyFrame sky, break; default: if (ptr->hasWCSCel(sys)) { - switch (format) { - case Coord::DEGREES: - { - Vector vv = ptr->mapFromRef(center,sys,sky); - str << type_ << '(' << setprecision(10) << vv << ')'; - } - break; - case Coord::SEXAGESIMAL: - listRADEC(ptr,center,sys,sky,format); - str << type_ << '(' << ra << ',' << dec << ')'; - break; - } + listRADEC(ptr,center,sys,sky,format); + str << type_ << '(' << ra << ',' << dec << ')'; } else listNonCel(ptr, str, sys); @@ -300,19 +290,8 @@ void Text::listSAOtng(ostream& str, Coord::CoordSystem sys, Coord::SkyFrame sky, break; default: if (ptr->hasWCSCel(sys)) { - switch (format) { - case Coord::DEGREES: - { - Vector vv = ptr->mapFromRef(center,sys,sky); - str << type_ << '(' << setprecision(10) << vv - << ", \"" << text << "\")"; - } - break; - case Coord::SEXAGESIMAL: - listRADEC(ptr,center,sys,sky,format); - str << type_ << '(' << ra << ',' << dec << ", \"" << text << "\")"; - break; - } + listRADEC(ptr,center,sys,sky,format); + str << type_ << '(' << ra << ',' << dec << ", \"" << text << "\")"; } } |