5d240cce47f20864ce6f856ce17ae7091d62cf56 angie Wed May 14 16:20:12 2014 -0700 Mac OS X Mavericks gcc -Wall detects unused INLINE functions;getting rid of the one it found. diff --git src/hg/lib/cart.c src/hg/lib/cart.c index c953f52..f13d17d 100644 --- src/hg/lib/cart.c +++ src/hg/lib/cart.c @@ -434,38 +434,30 @@ } static void hashEmpty(struct hash *hash) /* Remove everything from hash. */ { struct hashEl *hel, *helList = hashElListHash(hash); for (hel = helList; hel != NULL; hel = hel->next) { freez(&(hel->val)); hashRemove(hash, hel->name); } hashElFreeList(&helList); assert(hashNumEntries(hash) == 0); } -INLINE char *getDb(struct cart *cart, struct hash *oldVars) -/* Quick wrapper around getDbGenomeClade for when we only want db. */ -{ -char *db=NULL, *ignoreOrg, *ignoreClade; -getDbGenomeClade(cart, &db, &ignoreOrg, &ignoreClade, oldVars); -return db; -} - #ifndef GBROWSE void cartLoadUserSession(struct sqlConnection *conn, char *sessionOwner, char *sessionName, struct cart *cart, struct hash *oldVars, char *actionVar) /* If permitted, load the contents of the given user's session, and then * reload the CGI settings (to support override of session settings). * If non-NULL, oldVars will contain values overloaded when reloading CGI. * If non-NULL, actionVar is a cartRemove wildcard string specifying the * CGI action variable that sent us here. */ { struct sqlResult *sr = NULL; char **row = NULL; char *userName = wikiLinkUserName(); char *encSessionName = cgiEncodeFull(sessionName); char *encSessionOwner = cgiEncodeFull(sessionOwner);