Smileys: remove unnecessary and debug code