removed duplicated includes
commit61a3be1d9496c204c81b5871bf9c11c69752e177
authorbalrok <der-coole-carl@gmx.net>
Fri, 6 Mar 2009 16:43:54 +0000 (6 17:43 +0100)
committerVladimirMangos <vladimir@getmangos.com>
Sat, 7 Mar 2009 23:08:16 +0000 (8 02:08 +0300)
tree6d32f4da4918b8262b43ae40cb1999d13e9a1579
parent49c384f6b0654758dcd8402e86c5b757567cc1b0
removed duplicated includes

i used the following script
(i have no awk-skills :-/ i guess with awk it will look much better)
for i in `ls *.h`
do
    HEADER="#include \\\""`echo $i | sed 's/\./\\\\./'`"\\\"" #a grep-readable #include "file.h"
    # following should deletes the first occurence of a duplicated
    # (#include) line
    # if an include is more then once in this file this script
    # has to be run more often - i don't know a better solution
    grep -cH "$HEADER" *.[hcpp]* | grep -v :1$ | grep -v :0 | sed -r 's/:[0-9]*$//' | xargs sed -i '0,/#include "'$i'"/{//d;}'
done

Signed-off-by: VladimirMangos <vladimir@getmangos.com>
Restored build for x64: WorldSession expected to be fist include in WorldSession.cpp
src/game/CreatureAIRegistry.cpp
src/game/InstanceSaveMgr.cpp
src/game/Level2.cpp
src/game/ObjectAccessor.cpp
src/game/Player.cpp
src/game/SpellEffects.cpp
src/game/WorldSession.cpp