AI server: removed some unused code