Should we remove unused code?

Поиск
Список
Период
Сортировка
От Aleksander Alekseev
Тема Should we remove unused code?
Дата
Msg-id 20160418180711.55ac82c0@fujitsu
обсуждение исходный текст
Ответы Re: Should we remove unused code?  (Tom Lane <tgl@sss.pgh.pa.us>)
Список pgsql-hackers
Hello

Today I've read this post:

http://blog.2ndquadrant.com/code-coverage/

I think its great and that everyone in this mailing list should
familiarize themselves with it.

Reading the coverage report, I discovered that some code is never
executed. Sometimes its OK (error reporting in out-of-memory cases),
sometimes its not (not enough tests). But there are also cases I'm not
sure about.

For instance there are two flags - HASH_SEGMENT and HASH_FFACTOR that
are in fact never used (see attachment). I wonder whether we should
keep code like this or not.

What do you think?

--
Best regards,
Aleksander Alekseev
http://eax.me/

Вложения

В списке pgsql-hackers по дате отправления:

Предыдущее
От: Tom Lane
Дата:
Сообщение: Re: Spinlocks and semaphores in 9.2 and 9.3
Следующее
От: Andres Freund
Дата:
Сообщение: Re: Spinlocks and semaphores in 9.2 and 9.3