glib2: remove unused method