it is the last warning in travis-ci. we may consider adding ERR=1

ср, 5 февр. 2020 г. в 21:22, Tim Duesterhus <t...@bastelstu.be>:

> The function was change to be static in commit
> 6c39198b575444466ddfc5368e481d2a7cf8111d, but even that commit
> no longer uses it. The purpose of the change vs. outright removal
> is unclear.
>
> see issue #301
> ---
>  src/peers.c | 12 ------------
>  1 file changed, 12 deletions(-)
>
> diff --git a/src/peers.c b/src/peers.c
> index e2581a73b..52e2a8ba4 100644
> --- a/src/peers.c
> +++ b/src/peers.c
> @@ -2889,18 +2889,6 @@ static struct dcache *new_dcache(size_t max_entries)
>         return NULL;
>  }
>
> -/*
> - * Deallocate a cache of dictionary entries.
> - */
> -static inline void free_dcache(struct dcache *dc)
> -{
> -       free_dcache_tx(dc->tx);
> -       dc->tx = NULL;
> -       free(dc->rx); dc->rx = NULL;
> -       free(dc);
> -}
> -
> -
>  /*
>   * Look for the dictionary entry with the value of <i> in <d> cache of
> dictionary
>   * entries used upon transmission.
> --
> 2.25.0
>
>

Reply via email to