Remove unused def

Remove a def that was never used anywhere in the code.