s4-rpc_server: Remove unused dnsserver_find_partition()
authorAndrew Bartlett <abartlet@samba.org>
Tue, 21 May 2019 02:41:06 +0000 (14:41 +1200)
committerGary Lockyer <gary@samba.org>
Wed, 22 May 2019 05:59:13 +0000 (05:59 +0000)
This has been unused since it was introduced by
5673e2cec946502da84956f866658718e7632a3e in 2011.

Found by callcatcher

Signed-off-by: Andrew Bartlett <abartlet@samba.org>
Reviewed-by: Gary Lockyer <gary@catalyst.net.nz>
source4/rpc_server/dnsserver/dnsserver.h
source4/rpc_server/dnsserver/dnsutils.c

index 93f1d72f2ef5c4dc9751aed4984b6710b2c43198..a8307ef836a217fe024201126d04088a954fac46 100644 (file)
@@ -214,8 +214,6 @@ struct dnsserver_serverinfo *dnsserver_init_serverinfo(TALLOC_CTX *mem_ctx,
                                        struct ldb_context *samdb);
 struct dnsserver_zoneinfo *dnsserver_init_zoneinfo(struct dnsserver_zone *zone,
                                        struct dnsserver_serverinfo *serverinfo);
-struct dnsserver_partition *dnsserver_find_partition(struct dnsserver_partition *partitions,
-                                       const char *dp_fqdn);
 struct dnsserver_zone *dnsserver_find_zone(struct dnsserver_zone *zones,
                                        const char *zone_name);
 struct ldb_dn *dnsserver_name_to_dn(TALLOC_CTX *mem_ctx, struct dnsserver_zone *z,
index 3e8aab2a57315e5365cbd4022070a1949552e483..880e120c39a7f07a3aa8cfc44f349838cc84827b 100644 (file)
@@ -304,20 +304,6 @@ struct dnsserver_zoneinfo *dnsserver_init_zoneinfo(struct dnsserver_zone *zone,
        return zoneinfo;
 }
 
-struct dnsserver_partition *dnsserver_find_partition(struct dnsserver_partition *partitions,
-                                                    const char *dp_fqdn)
-{
-       struct dnsserver_partition *p = NULL;
-
-       for (p = partitions; p; p = p->next) {
-               if (strcasecmp(dp_fqdn, p->pszDpFqdn) == 0) {
-                       break;
-               }
-       }
-
-       return p;
-}
-
 struct dnsserver_zone *dnsserver_find_zone(struct dnsserver_zone *zones, const char *zone_name)
 {
        struct dnsserver_zone *z = NULL;