Remove dead code for selecting sound settings from the Windows startup window.

git-svn-id: https://svn.eduke32.com/eduke32@6062 1a8010ca-5511-0410-912e-c29ae57300e0
This commit is contained in:
hendricks266 2017-02-19 22:15:23 +00:00
parent d43fb548cf
commit 3faa84f6d4

View file

@ -30,7 +30,6 @@ Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
#ifdef STARTUP_SETUP_WINDOW #ifdef STARTUP_SETUP_WINDOW
#include "duke3d.h" #include "duke3d.h"
#include "sounds.h"
#include "build.h" #include "build.h"
@ -55,8 +54,6 @@ Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
// #define TAB_GAME 1 // #define TAB_GAME 1
#define TAB_MESSAGES 1 #define TAB_MESSAGES 1
static struct audioenumdrv *wavedevs = NULL;
static struct static struct
{ {
struct grpfile_t const * grp; struct grpfile_t const * grp;
@ -187,37 +184,6 @@ static void PopulateForm(int32_t pgs)
if (pgs & POPULATE_CONFIG) if (pgs & POPULATE_CONFIG)
{ {
#if 0
struct audioenumdev *d;
char *n;
hwnd = GetDlgItem(pages[TAB_CONFIG], IDCSOUNDDRV);
(void)ComboBox_ResetContent(hwnd);
if (wavedevs)
{
d = wavedevs->devs;
for (i=0; wavedevs->drvs[i]; i++)
{
strcpy(buf, wavedevs->drvs[i]);
if (d->devs)
{
strcat(buf, ":");
n = buf + strlen(buf);
for (j=0; d->devs[j]; j++)
{
strcpy(n, d->devs[j]);
(void)ComboBox_AddString(hwnd, buf);
}
}
else
{
(void)ComboBox_AddString(hwnd, buf);
}
d = d->next;
}
}
#endif
Button_SetCheck(GetDlgItem(pages[TAB_CONFIG], IDCALWAYSSHOW), (settings.forcesetup ? BST_CHECKED : BST_UNCHECKED)); Button_SetCheck(GetDlgItem(pages[TAB_CONFIG], IDCALWAYSSHOW), (settings.forcesetup ? BST_CHECKED : BST_UNCHECKED));
Button_SetCheck(GetDlgItem(pages[TAB_CONFIG], IDCAUTOLOAD), (!(settings.flags & 4) ? BST_CHECKED : BST_UNCHECKED)); Button_SetCheck(GetDlgItem(pages[TAB_CONFIG], IDCAUTOLOAD), (!(settings.flags & 4) ? BST_CHECKED : BST_UNCHECKED));
@ -723,9 +689,6 @@ int32_t startwin_run(void)
done = -1; done = -1;
#ifdef JFAUD
EnumAudioDevs(&wavedevs, NULL, NULL);
#endif
SetPage(TAB_CONFIG); SetPage(TAB_CONFIG);
EnableConfig(1); EnableConfig(1);
@ -786,19 +749,6 @@ int32_t startwin_run(void)
else Bsprintf(g_modDir,"/"); else Bsprintf(g_modDir,"/");
} }
if (wavedevs)
{
struct audioenumdev *d, *e;
Bfree(wavedevs->drvs);
for (e=wavedevs->devs; e; e=d)
{
d = e->next;
Bfree(e->devs);
Bfree(e);
}
Bfree(wavedevs);
}
return done; return done;
} }