Removed unused function

Removed; replaced bij exporting object.