Core/Misc: changed trinity string id to unsigned and removed obsolete code