Skip to content

Commit

Permalink
remove unused includes
Browse files Browse the repository at this point in the history
  • Loading branch information
Matthias Wittgen committed Sep 20, 2021
1 parent 184b6e4 commit 27cba73
Show file tree
Hide file tree
Showing 137 changed files with 6 additions and 297 deletions.
1 change: 0 additions & 1 deletion examples/image.cc
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,6 @@

#include <cstdio>
#include <string>
#include <algorithm>

#include "lsst/geom.h"
#include "lsst/afw/image/Image.h"
Expand Down
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
1 change: 0 additions & 1 deletion examples/integrateExample.cc
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,6 @@

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

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

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

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

Expand Down
1 change: 0 additions & 1 deletion examples/lanczosKernel.cc
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,6 @@

#include <iostream>

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

#include "lsst/afw/math/FunctionLibrary.h"
Expand Down
1 change: 0 additions & 1 deletion examples/mask.cc
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,6 @@

#include <cstdio>
#include <string>
#include <algorithm>

#include "lsst/geom.h"
#include "lsst/utils/Utils.h"
Expand Down
1 change: 0 additions & 1 deletion examples/simpleConvolve.cc
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,6 @@
*/

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

#include "lsst/utils/Utils.h"
Expand Down
1 change: 0 additions & 1 deletion examples/spatialCellExample.cc
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,6 @@
#include "lsst/pex/exceptions.h"
#include "lsst/daf/base.h"
#include "lsst/afw/detection.h"
#include "lsst/afw/image.h"
#include "lsst/afw/math.h"

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

#include <iostream>
#include <sstream>

#include "lsst/utils/Utils.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 @@ -21,7 +21,6 @@
*/

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

#include "lsst/utils/Utils.h"
Expand Down
1 change: 0 additions & 1 deletion examples/timeImageAddition.cc
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,6 @@
*/

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

#include "lsst/geom.h"
Expand Down
1 change: 0 additions & 1 deletion examples/timeImageIterators.cc
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,6 @@
*/

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

Expand Down
1 change: 0 additions & 1 deletion examples/timePixelAccess.cc
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,6 @@
*/

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

#include "boost/format.hpp"
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
5 changes: 0 additions & 5 deletions include/lsst/afw/image/Image.h
Original file line number Diff line number Diff line change
Expand Up @@ -34,19 +34,14 @@
#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: 1 addition & 0 deletions include/lsst/afw/image/ImageBaseFitsReader.h
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@
#include <string>
#include <memory>


#include "lsst/geom/Box.h"
#include "lsst/daf/base/PropertyList.h"
#include "lsst/afw/fits.h"
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
5 changes: 0 additions & 5 deletions include/lsst/afw/image/Utils.h
Original file line number Diff line number Diff line change
Expand Up @@ -36,13 +36,8 @@
#include <string>
#include <utility>

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

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

namespace lsst {
Expand Down
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 python/lsst/afw/cameraGeom/_camera.cc
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,6 @@

#include "pybind11/stl.h"

#include "lsst/utils/python.h"
#include "lsst/afw/table/io/python.h"
#include "lsst/afw/cameraGeom/Camera.h"

Expand Down
2 changes: 0 additions & 2 deletions python/lsst/afw/cameraGeom/_cameraSys.cc
Original file line number Diff line number Diff line change
Expand Up @@ -26,8 +26,6 @@
#include <pybind11/pybind11.h>
#include <lsst/utils/python.h>

#include "lsst/utils/python.h"

#include "lsst/afw/cameraGeom/CameraSys.h"

namespace py = pybind11;
Expand Down
2 changes: 0 additions & 2 deletions python/lsst/afw/cameraGeom/_detector.cc
Original file line number Diff line number Diff line change
Expand Up @@ -31,9 +31,7 @@

#include "ndarray/pybind11.h"

#include "lsst/utils/python.h"
#include "lsst/afw/cameraGeom/CameraSys.h"
#include "lsst/afw/cameraGeom/Orientation.h"
#include "lsst/geom.h"
#include "lsst/afw/table/io/python.h"
#include "lsst/afw/typehandling/Storable.h"
Expand Down
2 changes: 0 additions & 2 deletions python/lsst/afw/coord/_weather.cc
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,6 @@
* along with this program. If not, see <https://www.gnu.org/licenses/>.
*/

#include <sstream>

#include <pybind11/pybind11.h>

#include "lsst/utils/python.h"
Expand Down
2 changes: 0 additions & 2 deletions python/lsst/afw/detection/_footprint.cc
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,6 @@
#include "pybind11/pybind11.h"
#include "pybind11/stl.h"

#include <cstdint>

#include "ndarray/pybind11.h"

#include "lsst/utils/python.h"
Expand Down
1 change: 0 additions & 1 deletion python/lsst/afw/detection/_peak.cc
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,6 @@
#include "pybind11/pybind11.h"

#include <memory>
#include <sstream>

#include "lsst/utils/python.h"

Expand Down
1 change: 0 additions & 1 deletion python/lsst/afw/display/rgb/_rgb.cc
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,6 @@
#include <lsst/utils/python.h>
#include <pybind11/stl.h>

#include "lsst/afw/image/Image.h"
#include "lsst/afw/image/MaskedImage.h"
#include "Rgb.h"

Expand Down
2 changes: 0 additions & 2 deletions python/lsst/afw/display/rgb/_scaling.cc
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,7 @@
#include <cstdint>
#include <cmath>
#include <algorithm>
#include <cstdio>
#include <vector>
#include <stdexcept>

#include "lsst/pex/exceptions.h"
#include "lsst/afw/image/Image.h"
Expand Down
2 changes: 0 additions & 2 deletions python/lsst/afw/display/simpleFits.cc
Original file line number Diff line number Diff line change
Expand Up @@ -33,11 +33,9 @@ namespace posix { // here so no-one includes them first outside namespace posix
} // namespace posix
#endif // !DOXYGEN
using namespace posix;
#include <cstdint>
#include <cstdlib>
#include <cstdio>
#include <cstring>
#include <cassert>
#include <cctype>
#include <any>

Expand Down
1 change: 0 additions & 1 deletion python/lsst/afw/fits/_fits.cc
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,6 @@

#include "lsst/pex/exceptions/Exception.h"
#include "lsst/pex/exceptions/Runtime.h"
#include "lsst/pex/exceptions/python/Exception.h"
#include "lsst/daf/base.h"
#include "lsst/afw/image/Image.h"

Expand Down
1 change: 0 additions & 1 deletion python/lsst/afw/geom/_polygon.cc
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,6 @@
#include <pybind11/stl.h>

#include "lsst/pex/exceptions/Runtime.h"
#include "lsst/pex/exceptions/python/Exception.h"
#include "lsst/geom/Box.h"
#include "lsst/geom/Point.h"
#include "lsst/geom/AffineTransform.h"
Expand Down

0 comments on commit 27cba73

Please sign in to comment.