lib: Remove unused asprintf_strupper_m()
authorVolker Lendecke <vl@samba.org>
Sun, 16 Jan 2022 20:23:56 +0000 (21:23 +0100)
committerJeremy Allison <jra@samba.org>
Tue, 18 Jan 2022 20:22:38 +0000 (20:22 +0000)
Signed-off-by: Volker Lendecke <vl@samba.org>
Reviewed-by: Jeremy Allison <jra@samba.org>
source3/include/includes.h
source3/include/proto.h
source3/lib/util_str.c

index c3d3d351e41d2d34e8de81555b8e357a8bdcc74a..510a0b965396bdf1c1f94229558522a3ccaf011f 100644 (file)
@@ -341,7 +341,6 @@ int d_fprintf(FILE *f, const char *, ...) PRINTF_ATTRIBUTE(2,3);
 /* PRINTFLIKE2 */
 int fstr_sprintf(fstring s, const char *fmt, ...) PRINTF_ATTRIBUTE(2,3);
 
-int asprintf_strupper_m(char **strp, const char *fmt, ...) PRINTF_ATTRIBUTE(2,3);
 char *talloc_asprintf_strupper_m(TALLOC_CTX *t, const char *fmt, ...) PRINTF_ATTRIBUTE(2,3);
 
 /*
index dba728b3d8634b858b7e9a5e9171ada6e6699372..19a9c6b8a015a4ff646d19fb178e8d81e8ac4aa9 100644 (file)
@@ -557,8 +557,6 @@ int fstr_sprintf(fstring s, const char *fmt, ...);
 
 uint64_t STR_TO_SMB_BIG_UINT(const char *nptr, const char **entptr);
 uint64_t conv_str_size(const char * str);
-int asprintf_strupper_m(char **strp, const char *fmt, ...)
-                       PRINTF_ATTRIBUTE(2,3);
 char *talloc_asprintf_strupper_m(TALLOC_CTX *t, const char *fmt, ...)
                                 PRINTF_ATTRIBUTE(2,3);
 char *talloc_asprintf_strlower_m(TALLOC_CTX *t, const char *fmt, ...)
index 3c687dc28e8580255c3075fbdff6f6ba994e16c4..b1ed43669c0618fefa8b1406223541fa05ec2f6d 100644 (file)
@@ -523,32 +523,6 @@ uint64_t conv_str_size(const char * str)
        return lval;
 }
 
-/*
- * asprintf into a string and strupper_m it after that.
- */
-
-int asprintf_strupper_m(char **strp, const char *fmt, ...)
-{
-       va_list ap;
-       char *result;
-       int ret;
-
-       va_start(ap, fmt);
-       ret = vasprintf(&result, fmt, ap);
-       va_end(ap);
-
-       if (ret == -1)
-               return -1;
-
-       if (!strupper_m(result)) {
-               SAFE_FREE(result);
-               return -1;
-       }
-
-       *strp = result;
-       return ret;
-}
-
 char *talloc_asprintf_strupper_m(TALLOC_CTX *t, const char *fmt, ...)
 {
        va_list ap;