Discussion:
Finding unused units with a project.
(too old to reply)
Nicholas Ring
2008-05-20 04:23:57 UTC
Permalink
Hi all,

I have a [very] large project and would like to remove any obsolete
units that are not called any more.

I read (a long time ago) that a detailed .MAP file could help me to do
this but I am not totally sure how.

Could someone please show me how this is done.

Many thanks in advance,
Nick

--
Paul Nicholls
2008-05-20 04:42:50 UTC
Permalink
Post by Nicholas Ring
Hi all,
I have a [very] large project and would like to remove any obsolete
units that are not called any more.
I read (a long time ago) that a detailed .MAP file could help me to do
this but I am not totally sure how.
Could someone please show me how this is done.
Many thanks in advance,
Nick
--
Hi Nick :-)
I don't know about MAP files, but there is a freeware tool found here

http://www.peganza.com/#ICARUS

that can tell you unused units (don't know about it's limits and I haven't
used it before myself)

cheers,
Paul
unknown
2008-05-20 08:08:01 UTC
Permalink
Post by Nicholas Ring
Hi all,
I have a [very] large project and would like to remove any obsolete
units that are not called any more.
I read (a long time ago) that a detailed .MAP file could help me to do
this but I am not totally sure how.
Could someone please show me how this is done.
Many thanks in advance,
Nick
I had the same problem when inheriting some libraries; CnPack has a
'Uses Cleaner' option. Works great and saved me a lot of time.

See http://www.cnpack.org

...Arjan...
m. Th.
2008-05-20 09:17:35 UTC
Permalink
Post by unknown
I had the same problem when inheriting some libraries; CnPack has a
'Uses Cleaner' option. Works great and saved me a lot of time.
See http://www.cnpack.org
...Arjan...
Where? I have installed CnPack on D2007 and I cannot find it.

TIA,

m. Th.
Michael Justin
2008-05-20 14:10:46 UTC
Permalink
Post by m. Th.
Where? I have installed CnPack on D2007 and I cannot find it.
CnPack IDE Wizards (CnWizards) is a separate download.

To find the wizards in the IDE check this screen shot:

Loading Image...

Best Regards
--
Michael Justin
SCJP, SCJA
betasoft - Software for Delphi™ and for the Java™ platform
http://www.mikejustin.com - http://www.betabeans.de
m. Th.
2008-05-21 07:38:20 UTC
Permalink
Post by Michael Justin
Post by m. Th.
Where? I have installed CnPack on D2007 and I cannot find it.
CnPack IDE Wizards (CnWizards) is a separate download.
http://www.cnpack.org/images/cnwizards.gif
Best Regards
Thanks, that was it!

--

m. Th.

Charles McAllister
2008-05-20 18:17:33 UTC
Permalink
FWIW, i wrote a utility to automatically remove all unused units in all of the units in a project all at once.

i wrote code to specifically leave in units of the VCL that were added by Delphi because there were components used in the DFM -- even though the project would still compile without those units in the uses clause.

the utility is part of the <very beta> codewrench project
http://sourceforge.net/projects/codewrench
Post by Nicholas Ring
Hi all,
I have a [very] large project and would like to remove any obsolete
units that are not called any more.
I read (a long time ago) that a detailed .MAP file could help me to do
this but I am not totally sure how.
Could someone please show me how this is done.
Many thanks in advance,
Nick
Continue reading on narkive:
Loading...