Remove unused port_range field

The port_range is used from "struct server_params", the copy in
"struct server" was unused.
This commit is contained in:
Romain Vimont 2020-12-06 15:18:33 +01:00
parent 8e83f3e8af
commit ace438e52a
2 changed files with 0 additions and 5 deletions

View file

@ -378,8 +378,6 @@ server_init(struct server *server) {
server->video_socket = INVALID_SOCKET;
server->control_socket = INVALID_SOCKET;
server->port_range.first = 0;
server->port_range.last = 0;
server->local_port = 0;
server->tunnel_enabled = false;
@ -413,8 +411,6 @@ run_wait_server(void *data) {
bool
server_start(struct server *server, const char *serial,
const struct server_params *params) {
server->port_range = params->port_range;
if (serial) {
server->serial = SDL_strdup(serial);
if (!server->serial) {

View file

@ -26,7 +26,6 @@ struct server {
socket_t server_socket; // only used if !tunnel_forward
socket_t video_socket;
socket_t control_socket;
struct sc_port_range port_range;
uint16_t local_port; // selected from port_range
bool tunnel_enabled;
bool tunnel_forward; // use "adb forward" instead of "adb reverse"