diff --git a/src/d_stats.cpp b/src/d_stats.cpp index dad85837a..e6c0e196b 100644 --- a/src/d_stats.cpp +++ b/src/d_stats.cpp @@ -38,7 +38,6 @@ extern int sys_ostype; EXTERN_CVAR(Bool, vid_glswfb) extern int currentrenderer; - CVAR(Int, sys_statsenabled, -1, CVAR_ARCHIVE | CVAR_GLOBALCONFIG | CVAR_NOSET) CVAR(String, sys_statshost, "gzstats.drdteam.org", CVAR_ARCHIVE|CVAR_GLOBALCONFIG|CVAR_NOSET) CVAR(Int, sys_statsport, 80, CVAR_ARCHIVE|CVAR_GLOBALCONFIG|CVAR_NOSET) @@ -359,26 +358,3 @@ void D_ConfirmSendStats() } #endif // NO_SEND_STATS - -void D_ConfirmSendStats() -{ - if (sys_statsenabled >= 0) - { - return; - } - - // TODO: texts - static const char *const MESSAGE_TEXT = "send stats?"; - static const char *const TITLE_TEXT = GAMENAME; - - UCVarValue enabled = { 0 }; - -#ifdef _WIN32 - extern HWND Window; - enabled = { MessageBox(Window, MESSAGE_TEXT, TITLE_TEXT, MB_ICONQUESTION | MB_YESNO) == IDYES }; -#else - // TODO -#endif - - sys_statsenabled.ForceSet(enabled, CVAR_Int); -}