Removed unused function in release build