aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlessandro Iezzi <aiezzi@alessandroiezzi.it>2023-02-27 17:41:21 +0100
committerAlessandro Iezzi <aiezzi@alessandroiezzi.it>2023-02-27 17:41:21 +0100
commit283f7a7bdd8b7f393bb9b3d9b0dd8b7204b4a974 (patch)
tree9d91b3915e3d8c273fbdf9eb502d8716d65b1e77
parentcde61d76caf8d8d519800907542ac0e33accfc61 (diff)
downloadlog-283f7a7bdd8b7f393bb9b3d9b0dd8b7204b4a974.tar.gz
log-283f7a7bdd8b7f393bb9b3d9b0dd8b7204b4a974.zip
Remove an unused function
-rw-r--r--src/log.c16
1 files changed, 0 insertions, 16 deletions
diff --git a/src/log.c b/src/log.c
index 1ef7425..945810d 100644
--- a/src/log.c
+++ b/src/log.c
@@ -63,22 +63,6 @@ log_parse_level_property(char *str_level)
return -1;
}
-static char *
-remove_ext(const char *filename)
-{
- int i, size_s = stridxof(filename, '.') + 1;
- char *name = (char *) malloc(sizeof(char) * size_s);
-
- for (i = 0; i < size_s; i++) {
- name[i] = filename[i];
- }
-
- name[size_s - 1] = '\0';
-
- return name;
-}
- */
-
/* Parses the configuration line to get log level and the context */
static int
log_get_level(const char *tag, char *conf_key, char *conf_value)