From b0c7f0378a2f5819b035fcebe88df3fed3838fa4 Mon Sep 17 00:00:00 2001 From: jl777 Date: Wed, 19 Jul 2017 13:37:06 +0200 Subject: [PATCH] Test --- iguana/exchanges/LP_portfolio.c | 19 ------------------- 1 file changed, 19 deletions(-) diff --git a/iguana/exchanges/LP_portfolio.c b/iguana/exchanges/LP_portfolio.c index 957dfa001..16fc2fa52 100644 --- a/iguana/exchanges/LP_portfolio.c +++ b/iguana/exchanges/LP_portfolio.c @@ -89,23 +89,4 @@ char *LP_portfolio() return(jprint(retjson,1)); } -struct LP_portfolioinfo *LP_portfoliofind(char *symbol) -{ - struct LP_portfolioinfo *ptr; - portable_mutex_lock(&LP_portfoliomutex); - HASH_FIND(hh,LP_portfolios,symbol,strlen(symbol),ptr); - portable_mutex_unlock(&LP_portfoliomutex); - return(ptr); -} - -struct LP_portfolioinfo *LP_portfolioadd(char *symbol,uint64_t goal) -{ - struct LP_portfolioinfo *ptr = calloc(1,sizeof(*ptr)); - safecopy(ptr->symbol,symbol,sizeof(ptr->symbol)); - ptr->goal = goal; - portable_mutex_lock(&LP_portfoliomutex); - HASH_ADD_KEYPTR(hh,LP_portfolios,ptr->symbol,strlen(ptr->symbol),ptr); - portable_mutex_unlock(&LP_portfoliomutex); - return(ptr); -}