Remove unused variables and code.
authorJeremy Allison <jra@samba.org>
Tue, 19 Jun 2012 17:16:32 +0000 (10:16 -0700)
committerJeremy Allison <jra@samba.org>
Tue, 19 Jun 2012 17:27:24 +0000 (10:27 -0700)
source3/rpc_server/epmapper/srv_epmapper.c

index 4fea5887a47ce3b0b44204432fcac09cd3a1e46b..5cd25edc637a910daa940bfefd67d9fce4d565fe 100644 (file)
@@ -538,7 +538,6 @@ error_status_t _epm_Lookup(struct pipes_struct *p,
 
        if (r->in.entry_handle == NULL ||
            ndr_policy_handle_empty(r->in.entry_handle)) {
-               struct GUID *obj;
                char *srv_addr = NULL;
 
                DEBUG(7, ("_epm_Lookup: No entry_handle found, creating it.\n"));
@@ -549,12 +548,6 @@ error_status_t _epm_Lookup(struct pipes_struct *p,
                        goto done;
                }
 
-               if (r->in.object == NULL || GUID_all_zero(r->in.object)) {
-                       obj = NULL;
-               } else {
-                       obj = r->in.object;
-               }
-
                if (p->local_address != NULL) {
                        srv_addr = tsocket_address_inet_addr_string(p->local_address,
                                                                    tmp_ctx);
@@ -857,7 +850,6 @@ error_status_t _epm_Map(struct pipes_struct *p,
        error_status_t rc;
        uint32_t count = 0;
        uint32_t num_towers = 0;
-       uint32_t num_floors = 0;
        uint32_t i;
        bool ok;
 
@@ -897,7 +889,6 @@ error_status_t _epm_Map(struct pipes_struct *p,
         * | Floor 6 | Routing                                               |
         * +---------+-------------------------------------------------------+
         */
-       num_floors = r->in.map_tower->tower.num_floors;
        floors = r->in.map_tower->tower.floors;
 
        /* We accept NDR as the transfer syntax */