Removed unused code from paste operation