From 5e5335717158d92faaf41e89653ac96823ad7458 Mon Sep 17 00:00:00 2001 From: Eivind Jahren Date: Fri, 26 Jan 2024 10:13:28 +0100 Subject: [PATCH] Make lookup_table_set_data static --- lib/include/ert/util/lookup_table.hpp | 2 -- lib/util/lookup_table.cpp | 5 ++--- 2 files changed, 2 insertions(+), 5 deletions(-) diff --git a/lib/include/ert/util/lookup_table.hpp b/lib/include/ert/util/lookup_table.hpp index ff23aef8e..ffad7c7d2 100644 --- a/lib/include/ert/util/lookup_table.hpp +++ b/lib/include/ert/util/lookup_table.hpp @@ -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(); diff --git a/lib/util/lookup_table.cpp b/lib/util/lookup_table.cpp index 244eefea1..6a6929e82 100644 --- a/lib/util/lookup_table.cpp +++ b/lib/util/lookup_table.cpp @@ -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);