s3-privs Remove unused function
authorAndrew Bartlett <abartlet@samba.org>
Mon, 30 Aug 2010 06:29:05 +0000 (16:29 +1000)
committerAndrew Bartlett <abartlet@samba.org>
Thu, 9 Sep 2010 04:46:01 +0000 (14:46 +1000)
Signed-off-by: Andrew Tridgell <tridge@samba.org>
source3/include/proto.h
source3/lib/privileges.c

index 088155d28123e18084fab23ab70cb654e9d5ad75..c4f904abab0529ae273fd068f5ee402418771142 100644 (file)
@@ -647,7 +647,6 @@ NTSTATUS privilege_delete_account(const struct dom_sid *sid);
 NTSTATUS privilege_set_init(PRIVILEGE_SET *priv_set);
 NTSTATUS privilege_set_init_by_ctx(TALLOC_CTX *mem_ctx, PRIVILEGE_SET *priv_set);
 void privilege_set_free(PRIVILEGE_SET *priv_set);
-NTSTATUS dup_luid_attr(TALLOC_CTX *mem_ctx, struct lsa_LUIDAttribute **new_la, struct lsa_LUIDAttribute *old_la, int count);
 bool is_privileged_sid( const struct dom_sid *sid );
 bool grant_all_privileges( const struct dom_sid *sid );
 
index 31b0e7dc555fd98d98c479e0c64bcc07c8d36407..f8ade863df4f009126e1e4996777d37a2e4b2b2f 100644 (file)
@@ -451,36 +451,6 @@ NTSTATUS privilege_delete_account(const struct dom_sid *sid)
        return dbwrap_delete_bystring(db, keystr);
 }
 
-/****************************************************************************
- duplicate alloc luid_attr
- ****************************************************************************/
-
-NTSTATUS dup_luid_attr(TALLOC_CTX *mem_ctx, struct lsa_LUIDAttribute **new_la, struct lsa_LUIDAttribute *old_la, int count)
-{
-       int i;
-
-       if ( !old_la )
-               return NT_STATUS_OK;
-
-       if (count) {
-               *new_la = TALLOC_ARRAY(mem_ctx, struct lsa_LUIDAttribute, count);
-               if ( !*new_la ) {
-                       DEBUG(0,("dup_luid_attr: failed to alloc new struct lsa_LUIDAttribute array [%d]\n", count));
-                       return NT_STATUS_NO_MEMORY;
-               }
-       } else {
-               *new_la = NULL;
-       }
-
-       for (i=0; i<count; i++) {
-               (*new_la)[i].luid.high = old_la[i].luid.high;
-               (*new_la)[i].luid.low = old_la[i].luid.low;
-               (*new_la)[i].attribute = old_la[i].attribute;
-       }
-
-       return NT_STATUS_OK;
-}
-
 /*******************************************************************
 *******************************************************************/