The removed commands were left over from the transition from autodetection to explicit options in the CMake staging branch. These commands prevented the -DENABLE_WALLET=OFF option from being work properly when building with depends.
How to test:
$ make -C depends NO_QT=1
On the master branch @ c66c68345efb0bb3d5613ebac703cde779fa0f01:
$ rm -rf build && cmake -B build --toolchain depends/x86_64-pc-linux-gnu/toolchain.cmake -DENABLE_WALLET=OFF
< snip >
Optional features:
wallet support ...................... ON
- descriptor wallets (SQLite) ...... ON
- legacy wallets (Berkeley DB) ..... ON
external signer ..................... ON
< snip >
With this PR:
$ rm -rf build && cmake -B build --toolchain depends/x86_64-pc-linux-gnu/toolchain.cmake -DENABLE_WALLET=OFF
< snip >
Optional features:
wallet support ...................... OFF
external signer ..................... ON
< snip >