Removed unneeded unmanaged code.