]> git.ipfire.org Git - thirdparty/samba.git/commitdiff
lib: Remove unused octal_string()
authorVolker Lendecke <vl@samba.org>
Wed, 30 Nov 2022 13:17:29 +0000 (14:17 +0100)
committerJeremy Allison <jra@samba.org>
Mon, 12 Dec 2022 21:16:33 +0000 (21:16 +0000)
Signed-off-by: Volker Lendecke <vl@samba.org>
Reviewed-by: Jeremy Allison <jra@samba.org>
source3/include/proto.h
source3/lib/util_str.c

index 6612dd9fd2803d5fa77426076b8d29cb830f9a87..3d3cd93d5bc3dc218a172197e59107e416976c09 100644 (file)
@@ -540,7 +540,6 @@ char *realloc_string_sub(char *string,
                        const char *pattern,
                        const char *insert);
 void all_string_sub(char *s,const char *pattern,const char *insert, size_t len);
-char *octal_string(int i);
 char *string_truncate(char *s, unsigned int length);
 char *strchr_m(const char *src, char c);
 char *strrchr_m(const char *s, char c);
index 9362969795e0d31ab444097b81d560a8907820a3..3ac1e554246f5d044ad6cdeec204280344130016 100644 (file)
@@ -181,24 +181,6 @@ bool in_list(const char *s, const char *list, bool casesensitive)
        return ret;
 }
 
-/**
- Write an octal as a string.
-**/
-
-char *octal_string(int i)
-{
-       char *result;
-       if (i == -1) {
-               result = talloc_strdup(talloc_tos(), "-1");
-       }
-       else {
-               result = talloc_asprintf(talloc_tos(), "0%o", i);
-       }
-       SMB_ASSERT(result != NULL);
-       return result;
-}
-
-
 /**
  Truncate a string at a specified length.
 **/