Re: #ifdef NOT_USED

Поиск
Список
Период
Сортировка
От Abhijit Menon-Sen
Тема Re: #ifdef NOT_USED
Дата
Msg-id 20050628072425.GA25909@penne.toroid.org
обсуждение исходный текст
Ответ на Re: #ifdef NOT_USED  (Bruce Momjian <pgman@candle.pha.pa.us>)
Ответы Re: #ifdef NOT_USED  (Tom Lane <tgl@sss.pgh.pa.us>)
Список pgsql-hackers
(Sorry for the delayed response. I just got home from Germany after my
visit to Linuxtag, and I'm catching up with my -hackers email now.)

At 2005-06-25 09:30:17 -0400, pgman@candle.pha.pa.us wrote:
>
> > Hi, i have found several #ifdef NOT_USED marked code...
>
> We keep such blocks of code around in case we might need to use it
> some day.

I think that's a bad idea. Unused code should be removed with a suitable
CVS checkin comment (and perhaps a comment where the code was), not left
to clutter live code. That's what version control is for.

-- ams


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

Предыдущее
От: "Dave Page"
Дата:
Сообщение: Re: For review: dbsize patch
Следующее
От: Teodor Sigaev
Дата:
Сообщение: Re: contrib/rtree_gist into core system?