Skip to content

Commit

Permalink
Remove remaining old-style header guards
Browse files Browse the repository at this point in the history
  • Loading branch information
dbaston committed Jul 30, 2024
1 parent 76a48f0 commit c06e600
Show file tree
Hide file tree
Showing 19 changed files with 19 additions and 76 deletions.
5 changes: 1 addition & 4 deletions src/box.h
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,7 @@
// See the License for the specific language governing permissions and
// limitations under the License.

#ifndef EXACTEXTRACT_BOX_H
#define EXACTEXTRACT_BOX_H
#pragma once

#include "coordinate.h"
#include "crossing.h"
Expand Down Expand Up @@ -174,5 +173,3 @@ std::ostream&
operator<<(std::ostream& os, const Box& c);

}

#endif
5 changes: 1 addition & 4 deletions src/cell.h
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,7 @@
// See the License for the specific language governing permissions and
// limitations under the License.

#ifndef EXACTEXTRACT_CELL_H
#define EXACTEXTRACT_CELL_H
#pragma once

#include "box.h"
#include "coordinate.h"
Expand Down Expand Up @@ -105,5 +104,3 @@ class Cell
};

}

#endif
5 changes: 1 addition & 4 deletions src/coordinate.h
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,7 @@
// See the License for the specific language governing permissions and
// limitations under the License.

#ifndef EXACTEXTRACT_COORDINATE_H
#define EXACTEXTRACT_COORDINATE_H
#pragma once

#include <cmath>
#include <iostream>
Expand Down Expand Up @@ -59,5 +58,3 @@ std::ostream&
operator<<(std::ostream& os, const Coordinate& c);

}

#endif
5 changes: 1 addition & 4 deletions src/crossing.h
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,7 @@
// See the License for the specific language governing permissions and
// limitations under the License.

#ifndef EXACTEXTRACT_CELL_CROSSING_H
#define EXACTEXTRACT_CELL_CROSSING_H
#pragma once

#include "coordinate.h"
#include "side.h"
Expand Down Expand Up @@ -50,5 +49,3 @@ class Crossing
};

}

#endif
5 changes: 1 addition & 4 deletions src/floodfill.h
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,7 @@
// See the License for the specific language governing permissions and
// limitations under the License.

#ifndef EXACTEXTRACT_FLOODFILL_H
#define EXACTEXTRACT_FLOODFILL_H
#pragma once

#include <queue>

Expand Down Expand Up @@ -136,5 +135,3 @@ FloodFill::flood(Matrix<T>& arr) const
}

}

#endif
5 changes: 1 addition & 4 deletions src/geos_utils.h
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,7 @@
// See the License for the specific language governing permissions and
// limitations under the License.

#ifndef EXACTEXTRACT_GEOS_UTILS_H
#define EXACTEXTRACT_GEOS_UTILS_H
#pragma once

#include <functional>
#include <memory>
Expand Down Expand Up @@ -131,5 +130,3 @@ seq_ptr_r
to_coordseq(GEOSContextHandle_t context, const std::vector<Coordinate>& coords);

}

#endif // RASTER_OVERLAY_CPP_GEOS_UTILS_H
5 changes: 1 addition & 4 deletions src/grid.h
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,7 @@
// See the License for the specific language governing permissions and
// limitations under the License.

#ifndef EXACTEXTRACT_GRID_H
#define EXACTEXTRACT_GRID_H
#pragma once

#include <numeric>
#include <stdexcept>
Expand Down Expand Up @@ -386,5 +385,3 @@ common_grid(T begin, T end)
}

}

#endif // EXACTEXTRACT_INFINITEGRID_H
5 changes: 1 addition & 4 deletions src/matrix.h
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,7 @@
// See the License for the specific language governing permissions and
// limitations under the License.

#ifndef EXACTEXTRACT_MATRIX_H
#define EXACTEXTRACT_MATRIX_H
#pragma once

#include <cstring>
#include <iomanip>
Expand Down Expand Up @@ -155,5 +154,3 @@ operator<<(std::ostream& os, const Matrix<T>& m)
}

}

#endif
5 changes: 1 addition & 4 deletions src/measures.h
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,7 @@
// See the License for the specific language governing permissions and
// limitations under the License.

#ifndef EXACTEXTRACT_MEASURES_H
#define EXACTEXTRACT_MEASURES_H
#pragma once

#include <vector>

Expand Down Expand Up @@ -43,5 +42,3 @@ double
length(const std::vector<Coordinate>& coords);

}

#endif
5 changes: 1 addition & 4 deletions src/output_writer.h
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,7 @@
// See the License for the specific language governing permissions and
// limitations under the License.

#ifndef EXACTEXTRACT_OUTPUT_WRITER_H
#define EXACTEXTRACT_OUTPUT_WRITER_H
#pragma once

#include "feature.h"

Expand Down Expand Up @@ -51,5 +50,3 @@ class OutputWriter
};

}

#endif // EXACTEXTRACT_OUTPUT_WRITER_H
5 changes: 1 addition & 4 deletions src/perimeter_distance.h
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,7 @@
// See the License for the specific language governing permissions and
// limitations under the License.

#ifndef EXACTEXTRACT_PERIMETERDISTANCE_H
#define EXACTEXTRACT_PERIMETERDISTANCE_H
#pragma once

#include "box.h"
#include "coordinate.h"
Expand All @@ -32,5 +31,3 @@ double
perimeter_distance_ccw(double measure1, double measure2, double perimeter);

}

#endif
5 changes: 1 addition & 4 deletions src/raster_cell_intersection.h
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,7 @@
// See the License for the specific language governing permissions and
// limitations under the License.

#ifndef EXACTEXTRACT_RASTER_CELL_INTERSECTION_H
#define EXACTEXTRACT_RASTER_CELL_INTERSECTION_H
#pragma once

#include <memory>

Expand Down Expand Up @@ -111,5 +110,3 @@ Box
processing_region(const Box& raster_extent, const std::vector<Box>& component_boxes);

}

#endif
5 changes: 1 addition & 4 deletions src/raster_sequential_processor.h
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,7 @@
// See the License for the specific language governing permissions and
// limitations under the License.

#ifndef EXACTEXTRACT_RASTER_SEQUENTIAL_PROCESSOR_H
#define EXACTEXTRACT_RASTER_SEQUENTIAL_PROCESSOR_H
#pragma once

#include "geos_utils.h"
#include "map_feature.h"
Expand Down Expand Up @@ -42,5 +41,3 @@ class RasterSequentialProcessor : public Processor
};

}

#endif // EXACTEXTRACT_RASTER_SEQUENTIAL_PROCESSOR_H
5 changes: 1 addition & 4 deletions src/raster_source.h
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,7 @@
// See the License for the specific language governing permissions and
// limitations under the License.

#ifndef EXACTEXTRACT_RASTER_SOURCE_H
#define EXACTEXTRACT_RASTER_SOURCE_H
#pragma once

#include "box.h"
#include "grid.h"
Expand Down Expand Up @@ -51,5 +50,3 @@ class RasterSource
mutable std::unique_ptr<RasterVariant> m_empty;
};
}

#endif // EXACTEXTRACT_RASTER_SOURCE_H
5 changes: 1 addition & 4 deletions src/side.h
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,7 @@
// See the License for the specific language governing permissions and
// limitations under the License.

#ifndef EXACTEXTRACT_SIDE_H
#define EXACTEXTRACT_SIDE_H
#pragma once

#include <iostream>

Expand All @@ -31,5 +30,3 @@ std::ostream&
operator<<(std::ostream& os, const Side& s);

}

#endif
5 changes: 1 addition & 4 deletions src/traversal.h
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,7 @@
// See the License for the specific language governing permissions and
// limitations under the License.

#ifndef EXACTEXTRACT_TRAVERSAL_H
#define EXACTEXTRACT_TRAVERSAL_H
#pragma once

#include <vector>

Expand Down Expand Up @@ -74,5 +73,3 @@ class Traversal
};

}

#endif
5 changes: 1 addition & 4 deletions src/traversal_areas.h
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,7 @@
// See the License for the specific language governing permissions and
// limitations under the License.

#ifndef EXACTEXTRACT_TRAVERSAL_AREAS_H
#define EXACTEXTRACT_TRAVERSAL_AREAS_H
#pragma once

#include <vector>

Expand Down Expand Up @@ -51,5 +50,3 @@ geom_ptr_r
left_hand_rings(GEOSContextHandle_t context, const Box& box, const std::vector<const std::vector<Coordinate>*>& coord_lists);

}

#endif
5 changes: 1 addition & 4 deletions src/variance.h
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,7 @@
// See the License for the specific language governing permissions and
// limitations under the License.

#ifndef EXACTEXTRACT_VARIANCE_H
#define EXACTEXTRACT_VARIANCE_H
#pragma once

#include <cmath>

Expand Down Expand Up @@ -73,5 +72,3 @@ class WestVariance
};

}

#endif // EXACTEXTRACT_VARIANCE_H
5 changes: 1 addition & 4 deletions src/weighted_quantiles.h
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,7 @@
// See the License for the specific language governing permissions and
// limitations under the License.

#ifndef EXACTEXTRACT_WEIGHTED_QUANTILES_H
#define EXACTEXTRACT_WEIGHTED_QUANTILES_H
#pragma once

#include <cmath>
#include <stdexcept>
Expand Down Expand Up @@ -67,5 +66,3 @@ class WeightedQuantiles
};

}

#endif // EXACTEXTRACT_WEIGHTED_QUANTILES_H

0 comments on commit c06e600

Please sign in to comment.