Revert "Revert "remove unused variables""

This reverts commit 0c735e5c9c.
This commit is contained in:
twinaphex 2021-11-05 18:53:09 +01:00
parent 7f33a03423
commit 2820231dd0
2 changed files with 0 additions and 7 deletions

View File

@ -377,9 +377,6 @@ void discord_update(enum discord_presence presence)
{
char join_secret[128];
struct netplay_room *room = &networking_state_get_ptr()->host_room;
bool host_method_is_mitm = room->host_method == NETPLAY_HOST_METHOD_MITM;
const char *srv_address = host_method_is_mitm ? room->mitm_address : room->address;
unsigned srv_port = host_method_is_mitm ? room->mitm_port : room->port;
if (room->id == 0)
return;

View File

@ -3576,12 +3576,8 @@ void netplay_hangup(netplay_t *netplay,
size_t i;
bool was_playing = false;
settings_t *settings = config_get_ptr();
#if 0
/* TODO/FIXME - doesn't exist yet */
bool extra_notifications = settings->bools.notification_show_netplay_extra;
#else
bool extra_notifications = false;
#endif
if (!netplay)
return;