Removed unused code from .m file