c133.org/blog : tech/fdo/if_0.html
Fri, 30 Dec 2005
.: #if 0 ::

There is a lot of really useless code sitting in Xorg today.

I was playing with a CVS checkout and noticed a large chunk of one of the source files was commented out with #if 0; so, this piqued my curiosity and I decided to figure out how many blocks of code are commented out with #if 0 in the server, driver, and lib trees.

The current count, in CVS HEAD, as of about five minutes ago:

moduleblocks of #if 0 code
libs56
server408
drivers648

All combined, that's 1112 blocks of code completely disabled at compile time just sitting there in the tree.

Haven't bothered checking any of the other modules; I'm sure there's more in apps but I don't really think it matters for docs or fonts. Still. That's a lot of useless crap.

[01:21] | [] | # | G