Skip to content

Commit

Permalink
#164 remove unused log method
Browse files Browse the repository at this point in the history
  • Loading branch information
alex-courtis committed Dec 22, 2024
1 parent dd00647 commit bc7faae
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 16 deletions.
2 changes: 0 additions & 2 deletions inc/log.h
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,5 @@ void log_cap_lines_free(struct SList **log_cap_lines);

void log_cap_lines_playback(struct SList *log_cap_lines);

void log_cap_lines_write(struct SList **log_cap_lines, const char *path);

#endif // LOG_H

14 changes: 0 additions & 14 deletions src/log.c
Original file line number Diff line number Diff line change
Expand Up @@ -225,17 +225,3 @@ void log_cap_lines_stop(struct SList **lines) {
void log_cap_lines_free(struct SList **lines) {
slist_free_vals(lines, log_cap_line_free);
}

void log_cap_lines_write(struct SList **lines, const char *path) {

// write empty to clear and validate
if (path && file_write(path, NULL, "w")) {
for (struct SList *i = *lines; i; i = i->nex) {
struct LogCapLine *line = (struct LogCapLine*)i->val;
if (strlen(line->line) > 0) {
file_write(path, line->line, "a");
}
}
}
}

0 comments on commit bc7faae

Please sign in to comment.