If you removed core code from the theme, you can always download a fresh copy and replace your files.
It’s a good idea to keep the core files untouched and make all of your changes using a child theme – this way, you can continue to update the theme without losing any of your modifications.