about summary refs log tree commit diff stats
diff options
context:
space:
mode:
authorJames Booth <boothj5@gmail.com>2014-01-21 22:06:09 +0000
committerJames Booth <boothj5@gmail.com>2014-01-21 22:06:09 +0000
commitbbdf2bea58b0c84054ead85aa2a93f86560f1568 (patch)
treecda49d76c488d4526b88029137621a94f685e34f
parent2bc22981fd351a8c4c2b4878781fbea8eb1f55ea (diff)
downloadprofani-tty-bbdf2bea58b0c84054ead85aa2a93f86560f1568.tar.gz
Removed unused encode.xml
-rw-r--r--src/common.c13
-rw-r--r--src/common.h1
2 files changed, 0 insertions, 14 deletions
diff --git a/src/common.c b/src/common.c
index 1131c4c9..c8367592 100644
--- a/src/common.c
+++ b/src/common.c
@@ -168,19 +168,6 @@ str_contains(char str[], int size, char ch)
 }
 
 char *
-encode_xml(const char * const xml)
-{
-    char *coded_msg = str_replace(xml, "&", "&amp;");
-    char *coded_msg2 = str_replace(coded_msg, "<", "&lt;");
-    char *coded_msg3 = str_replace(coded_msg2, ">", "&gt;");
-
-    free(coded_msg);
-    free(coded_msg2);
-
-    return coded_msg3;
-}
-
-char *
 prof_getline(FILE *stream)
 {
     char *buf;
diff --git a/src/common.h b/src/common.h
index b1b6834e..ad98aa2c 100644
--- a/src/common.h
+++ b/src/common.h
@@ -77,7 +77,6 @@ gboolean mkdir_recursive(const char *dir);
 char * str_replace(const char *string, const char *substr,
     const char *replacement);
 int str_contains(char str[], int size, char ch);
-char* encode_xml(const char * const xml);
 char * prof_getline(FILE *stream);
 char* release_get_latest(void);
 gboolean release_is_new(char *found_version);