Skip to content

Commit

Permalink
Remove unused functions in geo_polygon
Browse files Browse the repository at this point in the history
  • Loading branch information
eivindjahren committed Sep 2, 2024
1 parent f4ccc95 commit a4089f2
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 15 deletions.
13 changes: 0 additions & 13 deletions lib/geometry/geo_polygon.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -132,23 +132,10 @@ void geo_polygon_reset(geo_polygon_type *polygon) {
double_vector_reset(polygon->ycoord);
}

void geo_polygon_shift(geo_polygon_type *polygon, double x0, double y0) {
double_vector_shift(polygon->xcoord, x0);
double_vector_shift(polygon->ycoord, y0);
}

int geo_polygon_get_size(const geo_polygon_type *polygon) {
return double_vector_size(polygon->xcoord);
}

void geo_polygon_fprintf(const geo_polygon_type *polygon, FILE *stream) {
int i;
for (i = 0; i < double_vector_size(polygon->xcoord); i++)
fprintf(stream, "%10.3f %10.3f \n",
double_vector_iget(polygon->xcoord, i),
double_vector_iget(polygon->ycoord, i));
}

void geo_polygon_iget_xy(const geo_polygon_type *polygon, int index, double *x,
double *y) {
*x = double_vector_iget(polygon->xcoord, index);
Expand Down
2 changes: 0 additions & 2 deletions lib/include/ert/geometry/geo_polygon.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,6 @@ bool geo_polygon_contains_point(const geo_polygon_type *polygon, double x,
bool geo_polygon_contains_point__(const geo_polygon_type *polygon, double x,
double y, bool force_edge_inside);
void geo_polygon_reset(geo_polygon_type *polygon);
void geo_polygon_fprintf(const geo_polygon_type *polygon, FILE *stream);
void geo_polygon_shift(geo_polygon_type *polygon, double x0, double y0);
void geo_polygon_close(geo_polygon_type *polygoon);
int geo_polygon_get_size(const geo_polygon_type *polygon);
void geo_polygon_iget_xy(const geo_polygon_type *polygon, int index, double *x,
Expand Down

0 comments on commit a4089f2

Please sign in to comment.