ogr plugin: remove unused code