Skip to content

Commit

Permalink
Remove unused functions in nnc_info
Browse files Browse the repository at this point in the history
  • Loading branch information
eivindjahren committed Aug 22, 2024
1 parent ec70412 commit b144a03
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 25 deletions.
4 changes: 0 additions & 4 deletions lib/include/resdata/nnc_info.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,6 @@ typedef struct nnc_info_struct nnc_info_type;
const std::vector<int> &
nnc_info_get_grid_index_list(const nnc_info_type *nnc_info, int lgr_nr);
const std::vector<int> &
nnc_info_iget_grid_index_list(const nnc_info_type *nnc_info, int lgr_index);
const std::vector<int> &
nnc_info_get_self_grid_index_list(const nnc_info_type *nnc_info);
#endif

Expand All @@ -39,8 +37,6 @@ nnc_vector_type *nnc_info_get_self_vector(const nnc_info_type *nnc_info);
int nnc_info_get_lgr_nr(const nnc_info_type *nnc_info);
int nnc_info_get_size(const nnc_info_type *nnc_info);
int nnc_info_get_total_size(const nnc_info_type *nnc_info);
void nnc_info_fprintf(const nnc_info_type *nnc_info, FILE *stream);

bool nnc_info_equal(const nnc_info_type *nnc_info1,
const nnc_info_type *nnc_info2);
nnc_info_type *nnc_info_alloc_copy(const nnc_info_type *src_info);
Expand Down
21 changes: 0 additions & 21 deletions lib/resdata/nnc_info.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -208,24 +208,3 @@ int nnc_info_get_total_size(const nnc_info_type *nnc_info) {
}
return num_nnc;
}

void nnc_info_fprintf(const nnc_info_type *nnc_info, FILE *stream) {
fprintf(stream, "LGR_NR:%d \n", nnc_info->lgr_nr);
{
int lgr_nr;
for (lgr_nr = 0; lgr_nr < int_vector_size(nnc_info->lgr_index_map);
lgr_nr++) {
int lgr_index = int_vector_iget(nnc_info->lgr_index_map, lgr_nr);
if (lgr_index >= 0) {
printf(" %02d -> %02d => ", lgr_nr, lgr_index);
{
const std::vector<int> &index_list =
nnc_info_iget_grid_index_list(nnc_info, lgr_index);
vector_util_fprintf<int>(index_list, stream, " ", "%d");
printf("\n");
}
}
}
}
fprintf(stream, "\n");
}

0 comments on commit b144a03

Please sign in to comment.