http: remove unused code block

fix #7769