Removed dead code

- This function is not called anywhere and its functionality is actually duplicated in "Save" function