Probably you know, that there are some compiler flags which helps you to detect unused code. These are -Wunused or -Wunreachable-code. Please refer to stackoverflow.com for more information. But such a flags can only tell you about local usages of some… more »