[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]

Re: [tor-dev] #if 0 unused functions?



On Sun, Mar 22, 2015 at 12:12 AM, Sebastian Hahn
<sebastian@xxxxxxxxxxxxxx> wrote:
> Hi there,
>
> we have some functions which we never call anywhere. In many cases, it
> appears we shouldn't delete them from the source because they "belong"
> there - the thing I initially stumbled across was
> ed25519_seckey_write_to_file(), for example. But I also don't see why
> compiling it and potentially including it in our binary makes any sense.
>
> Thoughts?

I think it's a different answer case-by-case.  For the function you
mention, it's going to get used by my #12498 patch, so it probably
shouldn't get disabled.  But for other unused functions, we might be
better off removing them entirely, rather than wrapping them away for
further use.

cheers,
-- 
Nick
_______________________________________________
tor-dev mailing list
tor-dev@xxxxxxxxxxxxxxxxxxxx
https://lists.torproject.org/cgi-bin/mailman/listinfo/tor-dev