summaryrefslogtreecommitdiff
path: root/src/basic/string-util.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/basic/string-util.c')
-rw-r--r--src/basic/string-util.c10
1 files changed, 0 insertions, 10 deletions
diff --git a/src/basic/string-util.c b/src/basic/string-util.c
index 08a10e8787..474903b2a8 100644
--- a/src/basic/string-util.c
+++ b/src/basic/string-util.c
@@ -1032,16 +1032,6 @@ int free_and_strndup(char **p, const char *s, size_t l) {
return 1;
}
-char* string_erase(char *x) {
- if (!x)
- return NULL;
-
- /* A delicious drop of snake-oil! To be called on memory where
- * we stored passphrases or so, after we used them. */
- explicit_bzero_safe(x, strlen(x));
- return x;
-}
-
bool string_is_safe(const char *p) {
const char *t;