wireless-security: remove unused code

Found by Coverity.