[pyqgis-console] remove unused code