fix sun crash with evernight
remove dead code
Merge branch 'master' of github.com:mmaulwurff/FREG