@@ -523,36 +523,6 @@ static int32_t dnsresolver_create_network_cache(void *handle, int32_t netid)
523523 return STATUS_OK ;
524524}
525525
526- static int32_t dnsresolver_destroy_network_cache (void * handle , int32_t netid )
527- {
528- AIBinder * const binder = handle ;
529- binder_status_t status ;
530- _cleanup_parcel_ AParcel * parcel_in = NULL ;
531- _cleanup_parcel_ AParcel * parcel_out = NULL ;
532- _cleanup_status_ AStatus * status_out = NULL ;
533-
534- status = AIBinder_prepareTransaction (binder , & parcel_in );
535- if (status != STATUS_OK )
536- return status ;
537-
538- status = AParcel_writeInt32 (parcel_in , netid );
539- if (status != STATUS_OK )
540- return status ;
541-
542- status = AIBinder_transact (binder , FIRST_CALL_TRANSACTION + 8 /* destroyNetworkCache */ , & parcel_in , & parcel_out , 0 );
543- if (status != STATUS_OK )
544- return status ;
545-
546- status = AParcel_readStatusHeader (parcel_out , & status_out );
547- if (status != STATUS_OK )
548- return status ;
549-
550- if (!AStatus_isOk (status_out ))
551- return meaningful_binder_status (status_out );
552-
553- return STATUS_OK ;
554- }
555-
556526static int32_t dnsresolver_set_resolver_configuration (void * handle , const struct dnsresolver_params * params )
557527{
558528 AIBinder * const binder = handle ;
@@ -904,8 +874,6 @@ static void set_dnses(unsigned int netid, const char *dnses)
904874
905875 if (status != 0 ) {
906876 fprintf (stderr , "Error: unable to set DNS servers through Binder: %d\n" , status );
907- printf ("[#] <binder>::dnsResolver->destroyNetworkCache(%u)\n" , netid );
908- dnsresolver_destroy_network_cache (handle , netid );
909877 exit (ENONET );
910878 }
911879 } else
0 commit comments