Skip to content

Commit

Permalink
Remove unused stringlist c code
Browse files Browse the repository at this point in the history
  • Loading branch information
eivindjahren committed Jan 26, 2024
1 parent be1cc98 commit f0204d8
Show file tree
Hide file tree
Showing 3 changed files with 0 additions and 675 deletions.
51 changes: 0 additions & 51 deletions lib/include/ert/util/stringlist.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -21,76 +21,31 @@ int stringlist_select_files(stringlist_type *names, const char *path,

const char *stringlist_get_last(const stringlist_type *stringlist);
char *stringlist_pop(stringlist_type *stringlist);
void stringlist_deep_copy(stringlist_type *target, const stringlist_type *src);
stringlist_type *
stringlist_alloc_deep_copy_with_limits(const stringlist_type *src, int offset,
int num_strings);
stringlist_type *
stringlist_alloc_deep_copy_with_offset(const stringlist_type *src, int offset);
stringlist_type *stringlist_alloc_deep_copy(const stringlist_type *src);

stringlist_type *stringlist_alloc_new(void);
void stringlist_free__(void *);
void stringlist_free(stringlist_type *);
void stringlist_clear(stringlist_type *);

void stringlist_append_copy(stringlist_type *, const char *);

const char *stringlist_safe_iget(const stringlist_type *stringlist, int index);
bool stringlist_unique(const stringlist_type *stringlist);
bool stringlist_iequal(const stringlist_type *stringlist, int index,
const char *s);
const char *stringlist_iget(const stringlist_type *, int);
int stringlist_iget_as_int(const stringlist_type *stringlist, int index,
bool *valid);
double stringlist_iget_as_double(const stringlist_type *stringlist, int index,
bool *valid);
bool stringlist_iget_as_bool(const stringlist_type *stringlist, int index,
bool *valid);
char *stringlist_iget_copy(const stringlist_type *stringlist, int);
char *stringlist_alloc_joined_string(const stringlist_type *, const char *);
char *stringlist_alloc_joined_substring(const stringlist_type *s,
int start_index, int end_index,
const char *sep);
const char *stringlist_front(const stringlist_type *stringlist);
const char *stringlist_back(const stringlist_type *stringlist);

void stringlist_iset_copy(stringlist_type *, int index, const char *);
void stringlist_iset_ref(stringlist_type *, int index, const char *);
void stringlist_iset_owned_ref(stringlist_type *, int index, const char *);

void stringlist_insert_copy(stringlist_type *, int index, const char *);
void stringlist_insert_ref(stringlist_type *, int index, const char *);
void stringlist_insert_owned_ref(stringlist_type *, int index, const char *);

void stringlist_idel(stringlist_type *stringlist, int index);

int stringlist_get_size(const stringlist_type *);
void stringlist_fprintf(const stringlist_type *, const char *, FILE *);
void stringlist_fprintf_fmt(const stringlist_type *stringlist,
const stringlist_type *fmt_list, FILE *stream);

stringlist_type *stringlist_alloc_argv_copy(const char **, int);
stringlist_type *stringlist_alloc_argv_ref(const char **, int);
stringlist_type *stringlist_alloc_argv_owned_ref(const char **argv, int argc);
stringlist_type *stringlist_alloc_from_split(const char *input_string,
const char *sep);
stringlist_type *stringlist_fread_alloc(FILE *);

void stringlist_append_stringlist_copy(stringlist_type *,
const stringlist_type *);
void stringlist_insert_stringlist_copy(stringlist_type *,
const stringlist_type *, int);

bool stringlist_equal(const stringlist_type *, const stringlist_type *);
bool stringlist_contains(const stringlist_type *, const char *);
int_vector_type *stringlist_find(const stringlist_type *, const char *);
int stringlist_find_first(const stringlist_type *, const char *);
int stringlist_get_argc(const stringlist_type *);
char **stringlist_alloc_char_copy(const stringlist_type *);
char **stringlist_alloc_char_ref(const stringlist_type *stringlist);
void stringlist_fread(stringlist_type *, FILE *);
void stringlist_fwrite(const stringlist_type *, FILE *);
void stringlist_sort(stringlist_type *, string_cmp_ftype *string_cmp);
void stringlist_reverse(stringlist_type *s);
void stringlist_python_sort(stringlist_type *s, int cmp_flag);
Expand All @@ -100,12 +55,6 @@ int stringlist_select_matching(stringlist_type *names, const char *pattern);
#endif
int stringlist_select_matching_files(stringlist_type *names, const char *path,
const char *file_pattern);
int stringlist_select_matching_elements(stringlist_type *target,
const stringlist_type *src,
const char *pattern);
int stringlist_append_matching_elements(stringlist_type *target,
const stringlist_type *src,
const char *pattern);
UTIL_IS_INSTANCE_HEADER(stringlist);

#ifdef __cplusplus
Expand Down
Loading

0 comments on commit f0204d8

Please sign in to comment.