Removed unused code which generates PHP warnings

I've discovered some unused code in the Excel export (I recently enabled the real Debug option of Symfony). 

Please merge :+1: