Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Make lookup_table_set_data static #996

Merged
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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