resolv: delete unused RES_F_* flags
- RES_F_CONN was write-only (cleared, but never tested)
- RES_F_LASTMASK / RES_F_LASTSHIFT were write-only
- RES_GETLAST(flags) was never used
- res_findzonecut2() doesn't exist
Test: atest resolv_integration_test
Change-Id: I513c039e3ce48fd8a13ee4d1aad3d6d051c3e856
diff --git a/resolv/res_init.cpp b/resolv/res_init.cpp
index 06d4452..eeafb0c 100644
--- a/resolv/res_init.cpp
+++ b/resolv/res_init.cpp
@@ -313,7 +313,7 @@
if (statp->_vcsock >= 0) {
(void) close(statp->_vcsock);
statp->_vcsock = -1;
- statp->_flags &= ~(RES_F_VC | RES_F_CONN);
+ statp->_flags &= ~RES_F_VC;
}
for (ns = 0; ns < statp->_u._ext.nscount; ns++) {
if (statp->_u._ext.nssocks[ns] != -1) {