Revert "remove dead code warning"

This reverts commit 66398574cc3032a3f02745b857e49ad84f241f8f.