Skip to content

Commit

Permalink
Make lookup_table_set_data static
Browse files Browse the repository at this point in the history
  • Loading branch information
eivindjahren committed Aug 8, 2024
1 parent 139d1c5 commit 5e53357
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 5 deletions.
2 changes: 0 additions & 2 deletions lib/include/ert/util/lookup_table.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,6 @@ extern "C" {

typedef struct lookup_table_struct lookup_table_type;

void lookup_table_set_data(lookup_table_type *lt, double_vector_type *x,
double_vector_type *y, bool data_owner);
lookup_table_type *lookup_table_alloc(double_vector_type *x,
double_vector_type *y, bool data_owner);
lookup_table_type *lookup_table_alloc_empty();
Expand Down
5 changes: 2 additions & 3 deletions lib/util/lookup_table.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -55,9 +55,8 @@ static void lookup_table_sort_data(lookup_table_type *lt) {
IFF the @read_only flag is set to true; the x vector MUST be
sorted.
*/

void lookup_table_set_data(lookup_table_type *lt, double_vector_type *x,
double_vector_type *y, bool data_owner) {
static void lookup_table_set_data(lookup_table_type *lt, double_vector_type *x,
double_vector_type *y, bool data_owner) {

if (lt->data_owner) {
double_vector_free(lt->x_vector);
Expand Down

0 comments on commit 5e53357

Please sign in to comment.