From a4089f2009df5589a298f060ffe0913bdea3470f Mon Sep 17 00:00:00 2001 From: Eivind Jahren Date: Mon, 26 Aug 2024 06:58:13 +0200 Subject: [PATCH] Remove unused functions in geo_polygon --- lib/geometry/geo_polygon.cpp | 13 ------------- lib/include/ert/geometry/geo_polygon.hpp | 2 -- 2 files changed, 15 deletions(-) diff --git a/lib/geometry/geo_polygon.cpp b/lib/geometry/geo_polygon.cpp index d53b7c38c..d19e4a43b 100644 --- a/lib/geometry/geo_polygon.cpp +++ b/lib/geometry/geo_polygon.cpp @@ -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); diff --git a/lib/include/ert/geometry/geo_polygon.hpp b/lib/include/ert/geometry/geo_polygon.hpp index d8f29681d..bdaed024e 100644 --- a/lib/include/ert/geometry/geo_polygon.hpp +++ b/lib/include/ert/geometry/geo_polygon.hpp @@ -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,