USB: Fix struct member not used warnings.

Codacy.
This commit is contained in:
lightningterror 2023-05-11 09:49:44 +02:00
parent 9493d3e9c9
commit 449da42108
2 changed files with 1 additions and 13 deletions

View File

@ -85,7 +85,6 @@ namespace usb_mic
} f; //freezable
/* properties */
uint32_t debug;
std::vector<int16_t> buffer[2];
//uint8_t fifo[2][200]; //on-chip 400byte fifo
};
@ -411,12 +410,6 @@ namespace usb_mic
break;
}
if (set_vol)
{
//if (s->debug) {
//}
}
return ret;
}
@ -505,9 +498,7 @@ namespace usb_mic
ret = usb_audio_get_control(s, request & 0xff, value, index, length, data);
if (ret < 0)
{
//if (s->debug) {
Console.Warning("singstar: fail: get control\n");
//}
goto fail;
}
p->actual_length = ret;
@ -520,9 +511,7 @@ namespace usb_mic
ret = usb_audio_set_control(s, request & 0xff, value, index, length, data);
if (ret < 0)
{
//if (s->debug) {
Console.Warning("singstar: fail: set control\n data:");
//}
goto fail;
}
break;
@ -670,7 +659,7 @@ namespace usb_mic
ret = ret * outChns * sizeof(int16_t);
p->actual_length = ret;
#if 0 //defined(_DEBUG) && _MSC_VER > 1800
#if 0 //defined(_DEBUG) && defined(_MSC_VER)
if (!file)
{
char name[1024] = {0};

View File

@ -75,7 +75,6 @@ namespace usb_msd
struct usb_msd_csw csw;
enum USBMSDMode mode;
uint32_t data_len;
uint32_t residue;
uint32_t tag;
uint32_t file_op_tag; // read from file or buf
int32_t result;