Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

DM-15831: Remove unused afw/coord.h methods #395

Merged
merged 1 commit into from
Sep 24, 2018
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
1 change: 0 additions & 1 deletion include/lsst/afw/coord.h
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,5 @@

#include "lsst/afw/coord/Observatory.h"
#include "lsst/afw/coord/Weather.h"
#include "lsst/afw/coord/Coord.h"

#endif // LSST_AFW_COORD_H
60 changes: 0 additions & 60 deletions include/lsst/afw/coord/Coord.h

This file was deleted.

4 changes: 0 additions & 4 deletions include/lsst/afw/coord/Observatory.h
Original file line number Diff line number Diff line change
Expand Up @@ -79,10 +79,6 @@ class Observatory final {
/// get telescope elevation (meters above reference spheroid)
double getElevation() const noexcept { return _elevation; }

/// get telescope longitude as a dd:mm:ss.s string (positive values are E of Greenwich)
std::string getLongitudeStr() const;
/// get telescope latitude as a dd:mm:ss.s string
std::string getLatitudeStr() const;
/// get string representation
std::string toString() const;

Expand Down
3 changes: 0 additions & 3 deletions python/lsst/afw/coord/observatory.cc
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,6 @@ PYBIND11_MODULE(observatory, mod) {

/* Constructors */
cls.def(py::init<lsst::geom::Angle const, lsst::geom::Angle const, double const>());
cls.def(py::init<std::string const, std::string const, double const>());

/* Operators */
cls.def("__eq__", [](Observatory const& self, Observatory const& other) { return self == other; },
Expand All @@ -50,8 +49,6 @@ PYBIND11_MODULE(observatory, mod) {
cls.def("getLongitude", &Observatory::getLongitude);
cls.def("getLatitude", &Observatory::getLatitude);
cls.def("getElevation", &Observatory::getElevation);
cls.def("getLatitudeStr", &Observatory::getLatitudeStr);
cls.def("getLongitudeStr", &Observatory::getLongitudeStr);
cls.def("setLongitude", &Observatory::setLongitude, "longitude"_a);
cls.def("setLatitude", &Observatory::setLatitude, "latitude"_a);
cls.def("setElevation", &Observatory::setElevation, "elevation"_a);
Expand Down
154 changes: 0 additions & 154 deletions src/coord/Coord.cc

This file was deleted.

10 changes: 0 additions & 10 deletions src/coord/Observatory.cc
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,6 @@
#include "boost/format.hpp"

#include "lsst/geom/Angle.h"
#include "lsst/afw/coord/Coord.h"
#include "lsst/afw/coord/Observatory.h"

namespace lsst {
Expand All @@ -39,11 +38,6 @@ Observatory::Observatory(lsst::geom::Angle const longitude, lsst::geom::Angle co
double const elevation)
: _latitude(latitude), _longitude(longitude), _elevation(elevation) {}

Observatory::Observatory(std::string const& longitude, std::string const& latitude, double const elevation)
: _latitude(dmsStringToAngle(latitude)),
_longitude(dmsStringToAngle(longitude)),
_elevation(elevation) {}

Observatory::~Observatory() noexcept = default;

Observatory::Observatory(Observatory const&) noexcept = default;
Expand All @@ -61,10 +55,6 @@ void Observatory::setLongitude(lsst::geom::Angle const longitude) { _longitude =

void Observatory::setElevation(double const elevation) { _elevation = elevation; }

std::string Observatory::getLongitudeStr() const { return angleToDmsString(_longitude); }

std::string Observatory::getLatitudeStr() const { return angleToDmsString(_latitude); }

std::string Observatory::toString() const {
return (boost::format("%gW, %gN %g") % getLatitude().asDegrees() % getLongitude().asDegrees() %
getElevation())
Expand Down
57 changes: 0 additions & 57 deletions tests/coord.cc

This file was deleted.