s3:net rpc conf: remove the (now) unused rpc_conf_reg_valname_forbidden()
authorMichael Adam <obnox@samba.org>
Sun, 22 Sep 2013 01:45:28 +0000 (03:45 +0200)
committerMichael Adam <obnox@samba.org>
Tue, 24 Sep 2013 05:44:28 +0000 (07:44 +0200)
Signed-off-by: Michael Adam <obnox@samba.org>
Reviewed-by: Andrew Bartlett <abartlet@samba.org>
source3/utils/net_rpc_conf.c

index 5396e0f6d4e91f2fb41e43f4f0d787358b068561..0893442620d1cba9a5c735c1df35fe3be691496d 100644 (file)
@@ -175,27 +175,6 @@ static int rpc_conf_delincludes_usage(struct net_context *c, int argc,
  *
  **********************************************************/
 
-static bool rpc_conf_reg_valname_forbidden(const char * valname)
-{
-       const char *forbidden_valnames[] = {
-               "lock directory",
-               "lock dir",
-               "config backend",
-               "include",
-               "includes", /* this has a special meaning internally */
-               NULL
-       };
-       const char **forbidden = NULL;
-
-       for (forbidden = forbidden_valnames; *forbidden != NULL; forbidden++) {
-               if (strwicmp(valname, *forbidden) == 0) {
-                       return true;
-               }
-       }
-       return false;
-
-}
-
 /*
  * The function deletes a registry value with the name 'value' from the share
  * with the name 'share_name'. 'parent_hnd' is the handle for the smbconf key.