xsp: removed dead code