]> git.decadent.org.uk Git - nfs-utils.git/commitdiff
libexport.a: Remove dead code
authorChuck Lever <chuck.lever@oracle.com>
Mon, 22 Mar 2010 14:10:59 +0000 (10:10 -0400)
committerSteve Dickson <steved@redhat.com>
Mon, 22 Mar 2010 14:10:59 +0000 (10:10 -0400)
Clean up:  I can't find any call sites for client_find() or
client_match().

Signed-off-by: Chuck Lever <chuck.lever@oracle.com>
Signed-off-by: Steve Dickson <steved@redhat.com>
support/export/client.c
support/include/exportfs.h

index 6236561465f26261175b290276abeb10c39de0bd..f8c84de32178ba7c6b685aeb0f8c3dacdf927ff7 100644 (file)
@@ -211,28 +211,6 @@ client_freeall(void)
        }
 }
 
-nfs_client *
-client_find(struct hostent *hp)
-{
-       nfs_client      *clp;
-       int             i;
-
-       for (i = 0; i < MCL_MAXTYPES; i++) {
-               for (clp = clientlist[i]; clp; clp = clp->m_next) {
-                       if (!client_check(clp, hp))
-                               continue;
-#ifdef notdef
-                       if (clp->m_type == MCL_FQDN)
-                               return clp;
-                       return client_dup(clp, hp);
-#else
-                       return clp;
-#endif
-               }
-       }
-       return NULL;
-}
-
 struct hostent *
 client_resolve(struct in_addr addr)
 {
index 470b2ec1cb74a0f4183ec326b9a95d48f5f10035..3eb03d980e1edbe50dbb4a3a1cd0ff703810a185 100644 (file)
@@ -69,12 +69,10 @@ extern exp_hash_table exportlist[MCL_MAXTYPES];
 extern nfs_client *            clientlist[MCL_MAXTYPES];
 
 nfs_client *                   client_lookup(char *hname, int canonical);
-nfs_client *                   client_find(struct hostent *);
 void                           client_add(nfs_client *);
 nfs_client *                   client_dup(nfs_client *, struct hostent *);
 int                            client_gettype(char *hname);
 int                            client_check(nfs_client *, struct hostent *);
-int                            client_match(nfs_client *, char *hname);
 void                           client_release(nfs_client *);
 void                           client_freeall(void);
 char *                         client_compose(struct hostent *he);