Well, better late than never.c4s wrote:There is a buried "hack" by Danilo called Dead Procedure Remover. [...] Tomorrow I'll try to test if it still works with PB5.40...

Today I finally fiddled around a little with Danilo's code because it needed some changes to get it even started. Unfortunately I have bad news: It doesn't seem to work anymore. I figured it's because the tool is searching the "PureBasic.asm" source file for the strings "macro MP" and "}" (that apparently indicate procedure macros) which aren't available anymore.
Does anyone of you know how it could be adapted to work with PB 5.40? Maybe the ASM source needs to be created with comments so that the missing information can be read/processed correctly?