Skip to content

Commit

Permalink
Merge pull request #608 from lsst/tickets/DM-30777
Browse files Browse the repository at this point in the history
DM-30777: remove unused includes
  • Loading branch information
mwittgen committed Sep 23, 2021
2 parents d62ef0f + f003c66 commit 5ddfab5
Show file tree
Hide file tree
Showing 100 changed files with 34 additions and 310 deletions.
3 changes: 0 additions & 3 deletions examples/integrateCartesian.cc
Original file line number Diff line number Diff line change
Expand Up @@ -28,9 +28,6 @@
*
*/
#include <iostream>
#include <vector>
#include <cmath>
#include <functional>

#include "lsst/afw/math/Integrate.h"

Expand Down
2 changes: 1 addition & 1 deletion examples/integrateExample.cc
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@

#include <iostream>
#include <stdexcept>
#include <limits>
#include <cmath>

#include "lsst/afw/math/Integrate.h"

Expand Down
3 changes: 0 additions & 3 deletions examples/integratePolar.cc
Original file line number Diff line number Diff line change
Expand Up @@ -27,9 +27,6 @@
* integrator (afw::math Quadrature) with a polar function.
*/
#include <iostream>
#include <vector>
#include <cmath>
#include <functional>

#include "lsst/afw/math/Integrate.h"

Expand Down
2 changes: 1 addition & 1 deletion examples/lanczosKernel.cc
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,8 @@
*/

#include <iostream>
#include <vector>

#include <memory>
#include "boost/format.hpp"

#include "lsst/afw/math/FunctionLibrary.h"
Expand Down
1 change: 1 addition & 0 deletions examples/mask.cc
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@
#include <cstdio>
#include <string>
#include <algorithm>
#include <iostream>

#include "lsst/geom.h"
#include "lsst/utils/packaging.h"
Expand Down
1 change: 0 additions & 1 deletion examples/simpleConvolve.cc
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,6 @@
* see <http://www.lsstcorp.org/LegalNotices/>.
*/

#include <iostream>
#include <sstream>
#include <string>

Expand Down
2 changes: 1 addition & 1 deletion examples/spatialCellExample.cc
Original file line number Diff line number Diff line change
Expand Up @@ -30,8 +30,8 @@
#include "lsst/utils/packaging.h"
#include "lsst/pex/exceptions.h"
#include "lsst/daf/base.h"
#include "lsst/afw/detection.h"
#include "lsst/afw/image.h"
#include "lsst/afw/detection.h"
#include "lsst/afw/math.h"

#include "testSpatialCell.h"
Expand Down
3 changes: 2 additions & 1 deletion examples/spatiallyVaryingConvolve.cc
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,8 @@
*/

#include <iostream>
#include <sstream>
#include <vector>
#include <string>

#include "lsst/utils/packaging.h"
#include "lsst/pex/exceptions.h"
Expand Down
1 change: 0 additions & 1 deletion examples/timeConvolve.cc
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,6 @@
* see <http://www.lsstcorp.org/LegalNotices/>.
*/

#include <iostream>
#include <sstream>
#include <ctime>

Expand Down
1 change: 0 additions & 1 deletion examples/timeImageAddition.cc
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,6 @@
* see <http://www.lsstcorp.org/LegalNotices/>.
*/

#include <iostream>
#include <sstream>
#include <ctime>

Expand Down
1 change: 0 additions & 1 deletion examples/timeImageIterators.cc
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,6 @@
* see <http://www.lsstcorp.org/LegalNotices/>.
*/

#include <iostream>
#include <sstream>
#include <ctime>
#include <valarray>
Expand Down
1 change: 0 additions & 1 deletion examples/timeWcs.cc
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,6 @@
*/

#include <iostream>
#include <sstream>
#include <ctime>
#include <cmath>

Expand Down
1 change: 0 additions & 1 deletion include/lsst/afw/cameraGeom/Orientation.h
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,6 @@
#include "Eigen/Dense"
#include "lsst/geom.h"
#include "lsst/afw/geom/Transform.h"
#include "lsst/afw/image/Utils.h"

/*
* Describe a Detector's orientation
Expand Down
2 changes: 0 additions & 2 deletions include/lsst/afw/geom/ellipses/Convolution.h
Original file line number Diff line number Diff line change
Expand Up @@ -31,8 +31,6 @@
* Note: do not include directly; use the main ellipse header file.
*/

#include <boost/tuple/tuple.hpp>

#include "lsst/afw/geom/ellipses/Ellipse.h"

namespace lsst {
Expand Down
7 changes: 0 additions & 7 deletions include/lsst/afw/image/Image.h
Original file line number Diff line number Diff line change
Expand Up @@ -31,22 +31,15 @@
#define LSST_AFW_IMAGE_IMAGE_H

#include <string>
#include <utility>
#include <functional>

#include "boost/mpl/bool.hpp"
#include <climits>
#include <memory>

#include "lsst/geom.h"
#include "lsst/afw/image/ImageBase.h"
#include "lsst/afw/image/lsstGil.h"
#include "lsst/afw/image/ImageUtils.h"
#include "lsst/afw/image/Mask.h"
#include "lsst/afw/math/Function.h"
#include "lsst/afw/fitsDefaults.h"
#include "lsst/daf/base/PropertySet.h"
#include "lsst/pex/exceptions.h"
#include "ndarray.h"

namespace lsst {
Expand Down
5 changes: 1 addition & 4 deletions include/lsst/afw/image/ImageAlgorithm.h
Original file line number Diff line number Diff line change
Expand Up @@ -34,12 +34,9 @@
#include <utility>
#include <functional>

#include "boost/mpl/bool.hpp"
#include "boost/format.hpp"
#include <memory>

#include "lsst/afw/image/lsstGil.h"
#include "lsst/afw/image/ImageUtils.h"
#include "lsst/daf/base.h"
#include "lsst/pex/exceptions.h"

namespace lsst {
Expand Down
1 change: 0 additions & 1 deletion include/lsst/afw/image/ImagePca.h
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,6 @@
#include <string>
#include <utility>

#include "boost/mpl/bool.hpp"
#include <memory>

#include "lsst/pex/exceptions.h"
Expand Down
72 changes: 0 additions & 72 deletions include/lsst/afw/image/Utils.h

This file was deleted.

22 changes: 0 additions & 22 deletions include/lsst/afw/image/lsstGil.h
Original file line number Diff line number Diff line change
Expand Up @@ -40,20 +40,8 @@
#include "boost/mpl/bool.hpp"
#include "boost/mpl/if.hpp"

//#define BOOST_GIL_USE_CONCEPT_CHECK 1

#if defined(__ICC)
#pragma warning(push)
#pragma warning(disable : 68)
#pragma warning(disable : 304)
#endif

#include "boost/version.hpp"
#if BOOST_VERSION < 106900
#include "boost/gil/gil_all.hpp"
#else
#include "boost/gil.hpp"
#endif

#ifndef BOOST_GIL_DEFINE_BASE_TYPEDEFS
// Boost >=1.72 redefines GIL_ -> BOOST_GIL
Expand All @@ -62,9 +50,6 @@
#define BOOST_GIL_DEFINE_ALL_TYPEDEFS_INTERNAL GIL_DEFINE_ALL_TYPEDEFS_INTERNAL
#endif

#if defined(__ICC)
#pragma warning(pop)
#endif

namespace lsst {
namespace afw {
Expand Down Expand Up @@ -248,19 +233,12 @@ namespace detail {
//
// Map typenames to gil's types
//
#if defined(__ICC)
#pragma warning(push)
#pragma warning(disable : 304)
#endif

template <typename T, bool rescale = false>
struct types_traits {
BOOST_MPL_ASSERT_MSG(boost::mpl::bool_<false>::value, I_DO_NOT_KNOW_HOW_TO_MAP_THIS_TYPE_TO_A_GIL_TYPE,
());
};
#if defined(__ICC)
#pragma warning(pop)
#endif

template <>
struct types_traits<unsigned char, false> {
Expand Down
3 changes: 1 addition & 2 deletions include/lsst/afw/math/Kernel.h
Original file line number Diff line number Diff line change
Expand Up @@ -32,11 +32,10 @@
#include <utility>
#include <vector>

#include "boost/mpl/or.hpp"
#include "boost/format.hpp"

#include "lsst/geom.h"
#include "lsst/afw/image/Image.h"
#include "lsst/afw/image/Utils.h"
#include "lsst/afw/math/Function.h"
#include "lsst/afw/math/traits.h"

Expand Down
1 change: 0 additions & 1 deletion include/lsst/afw/math/Statistics.h
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,6 @@
#include <cassert>
#include <limits>
#include "boost/iterator/iterator_adaptor.hpp"
#include "boost/tuple/tuple.hpp"
#include <memory>
#include "lsst/afw/image/MaskedImage.h"
#include "lsst/afw/math/MaskedVector.h"
Expand Down
2 changes: 0 additions & 2 deletions include/lsst/afw/table/FieldBase.h
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,6 @@
#include <cstring>
#include <iostream>

#include "boost/mpl/vector.hpp"
#include "boost/preprocessor/punctuation/paren.hpp"
#include "Eigen/Core"

#include "lsst/base.h"
Expand Down
2 changes: 0 additions & 2 deletions include/lsst/afw/table/Source.h
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,6 @@
#ifndef AFW_TABLE_Source_h_INCLUDED
#define AFW_TABLE_Source_h_INCLUDED

#include "boost/array.hpp"
#include "boost/type_traits/is_convertible.hpp"

#include "lsst/afw/detection/Footprint.h"
#include "lsst/afw/table/Simple.h"
Expand Down
1 change: 0 additions & 1 deletion include/lsst/afw/table/misc.h
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@

#include <cstdint>

#include "boost/mpl/if.hpp"

#include "lsst/geom/Angle.h"
#include "lsst/geom/SpherePoint.h"
Expand Down
1 change: 0 additions & 1 deletion src/cameraGeom/TransformMap.cc
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,6 @@

#include "lsst/log/Log.h"
#include "lsst/pex/exceptions.h"
#include "lsst/afw/table/io/InputArchive.h"
#include "lsst/afw/table/io/OutputArchive.h"
#include "lsst/afw/table/io/CatalogVector.h"
#include "lsst/afw/table/io/Persistable.cc"
Expand Down
2 changes: 1 addition & 1 deletion src/coord/Observatory.cc
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,8 @@
* see <http://www.lsstcorp.org/LegalNotices/>.
*/

#include <sstream>
#include <string>
#include <iostream>

#include "boost/format.hpp"

Expand Down
2 changes: 0 additions & 2 deletions src/detection/FootprintMerge.cc
Original file line number Diff line number Diff line change
Expand Up @@ -21,9 +21,7 @@
*/
#include <cstdint>


#include "lsst/afw/detection/FootprintMerge.h"
#include "lsst/afw/detection/FootprintSet.h"
#include "lsst/afw/table/IdFactory.h"

namespace lsst {
Expand Down
4 changes: 3 additions & 1 deletion src/detection/FootprintSet.cc
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,9 @@
#include <cassert>
#include <set>
#include <string>
#include <typeinfo>
#include <map>
#include <vector>

#include "boost/format.hpp"
#include "lsst/pex/exceptions.h"
#include "lsst/afw/image/MaskedImage.h"
Expand Down
1 change: 0 additions & 1 deletion src/detection/GaussianPsf.cc
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,6 @@
#include "ndarray/eigen.h"

#include "lsst/afw/detection/GaussianPsf.h"
#include "lsst/afw/table/io/InputArchive.h"
#include "lsst/afw/table/io/OutputArchive.h"
#include "lsst/afw/table/io/CatalogVector.h"
#include "lsst/afw/table/aggregates.h"
Expand Down

0 comments on commit 5ddfab5

Please sign in to comment.