chore(modal): Remove unused code

Just went through the modal code and noticed that there was an unused function. Not sure if it was left there intentionally for later use or just a leftover from the past