s3: Remove some unused code
authorVolker Lendecke <vl@samba.org>
Tue, 16 Nov 2010 15:09:04 +0000 (16:09 +0100)
committerVolker Lendecke <vl@samba.org>
Wed, 17 Nov 2010 11:17:21 +0000 (12:17 +0100)
source3/winbindd/winbindd_async.c
source3/winbindd/winbindd_proto.h

index 8e53892bd83603db3b01d51ae4a72b4c1fc167d9..9a565bffd0218fe78b71ccfe57dd8744db39506e 100644 (file)
 #undef DBGC_CLASS
 #define DBGC_CLASS DBGC_WINBIND
 
-bool print_sidlist(TALLOC_CTX *mem_ctx, const struct dom_sid *sids,
-                  uint32_t num_sids, char **result, ssize_t *len)
-{
-       size_t i;
-       size_t buflen = 0;
-
-       *len = 0;
-       *result = NULL;
-       for (i=0; i<num_sids; i++) {
-               fstring tmp;
-               sprintf_append(mem_ctx, result, len, &buflen,
-                              "%s\n", sid_to_fstring(tmp, &sids[i]));
-       }
-
-       if ((num_sids != 0) && (*result == NULL)) {
-               return False;
-       }
-
-       return True;
-}
-
 bool parse_sidlist(TALLOC_CTX *mem_ctx, const char *sidstr,
                   struct dom_sid **sids, uint32_t *num_sids)
 {
index 52e6bfede0f0b3c662953f746df3a19e7cc7fec5..dbe723bead4642a606abc01c2688e236553e4261 100644 (file)
@@ -57,8 +57,6 @@ NTSTATUS winbindd_lookup_names(TALLOC_CTX *mem_ctx,
 
 /* The following definitions come from winbindd/winbindd_async.c  */
 
-bool print_sidlist(TALLOC_CTX *mem_ctx, const struct dom_sid *sids,
-                  uint32_t num_sids, char **result, ssize_t *len);
 bool parse_sidlist(TALLOC_CTX *mem_ctx, const char *sidstr,
                   struct dom_sid **sids, uint32_t *num_sids);