Revert "xz: Add missing code from xz patch"

This reverts commit 7e19d2fb90cf4bd89d8409e0074e534b3b3b4c7e.