Update listener.php

Removed unnecessary code