s3:services_db: remove unused legacy function svcctl_fetch_regvalues().
authorMichael Adam <obnox@samba.org>
Mon, 20 Sep 2010 09:20:37 +0000 (11:20 +0200)
committerMichael Adam <obnox@samba.org>
Tue, 21 Sep 2010 04:53:32 +0000 (06:53 +0200)
source3/include/proto.h
source3/services/services_db.c

index a77c90f308108b32467a73b5fbbdd6004a3e26e8..3349e028fbfd0a57f186a9faa329f1dfe572c3b1 100644 (file)
@@ -4404,7 +4404,6 @@ const char *svcctl_get_string_value(TALLOC_CTX *ctx, const char *key_name,
                                    struct security_token *token);
 const char *svcctl_lookup_dispname(TALLOC_CTX *ctx, const char *name, struct security_token *token );
 const char *svcctl_lookup_description(TALLOC_CTX *ctx, const char *name, struct security_token *token );
-struct regval_ctr *svcctl_fetch_regvalues( const char *name, struct security_token *token );
 
 /* The following definitions come from services/svc_netlogon.c  */
 
index bd34ad113c5ab98ae458d6701e5665b1b9b6c673..4afbf61581161cc6927f66b7cd251876cd3238e0 100644 (file)
@@ -691,40 +691,3 @@ const char *svcctl_lookup_description(TALLOC_CTX *ctx, const char *name, struct
 
        return description;
 }
-
-/********************************************************************
-********************************************************************/
-
-struct regval_ctr *svcctl_fetch_regvalues(const char *name, struct security_token *token)
-{
-       struct registry_key_handle *key = NULL;
-       struct regval_ctr *values = NULL;
-       char *path = NULL;
-       WERROR wresult;
-
-       /* now add the security descriptor */
-
-       if (asprintf(&path, "%s\\%s", KEY_SERVICES, name) < 0) {
-               return NULL;
-       }
-       wresult = regkey_open_internal( NULL, &key, path, token,
-                                       REG_KEY_READ );
-       if ( !W_ERROR_IS_OK(wresult) ) {
-               DEBUG(0,("svcctl_fetch_regvalues: key lookup failed! [%s] (%s)\n",
-                       path, win_errstr(wresult)));
-               SAFE_FREE(path);
-               return NULL;
-       }
-       SAFE_FREE(path);
-
-       wresult = regval_ctr_init(NULL, &values);
-       if (!W_ERROR_IS_OK(wresult)) {
-               DEBUG(0,("svcctl_fetch_regvalues: talloc() failed!\n"));
-               TALLOC_FREE( key );
-               return NULL;
-       }
-       fetch_reg_values( key, values );
-
-       TALLOC_FREE( key );
-       return values;
-}