#6647 remove old and bugged code

This commit removes code which is unusefull and quite old (more than 3 years).
It's related to issue https://support.chamilo.org/issues/6647