aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--CMakeLists.txt1
-rw-r--r--include/util.h6
-rw-r--r--src/template.c1
-rw-r--r--src/util.c16
4 files changed, 0 insertions, 24 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt
index dfd540f..8a16dfb 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -9,7 +9,6 @@ set(SRC
src/list.c
src/main.c
src/template.c
- src/util.c
)
add_executable(msg ${SRC})
diff --git a/include/util.h b/include/util.h
deleted file mode 100644
index 58c1f58..0000000
--- a/include/util.h
+++ /dev/null
@@ -1,6 +0,0 @@
-#ifndef __UTIL_H
-#define __UTIL_H
-
-void xstrcat(char *s1, char *s2);
-
-#endif
diff --git a/src/template.c b/src/template.c
index 4d84408..31bb41f 100644
--- a/src/template.c
+++ b/src/template.c
@@ -7,7 +7,6 @@
#include <stdlib.h>
#include <string.h>
#include <template.h>
-#include <util.h>
#include "../config.h"
diff --git a/src/util.c b/src/util.c
deleted file mode 100644
index 4863e29..0000000
--- a/src/util.c
+++ /dev/null
@@ -1,16 +0,0 @@
-#include <stdio.h>
-#include <stdlib.h>
-#include <string.h>
-#include <util.h>
-
-void
-xstrcat(char *s1, char *s2)
-{
- size_t a = strlen(s1);
- size_t b = strlen(s2);
- size_t size_ab = a + b + 1;
-
- s1 = realloc(s1, size_ab);
-
- memcpy(s1 + a, s2, b + 1);
-}