File audiofile-remove-unused-variables.patch of Package audiofile
--- libaudiofile/AIFF.cpp 2011-08-21 01:08:20.000000000 +0200
+++ libaudiofile/AIFF.cpp 2011-09-19 13:21:40.667506863 +0200
@@ -477,11 +477,7 @@
uint32_t type, size, formtype;
bool hasCOMM = false;
- bool hasFVER = false;
bool hasSSND = false;
- bool hasMARK = false;
- bool hasINST = false;
- bool hasAESD = false;
fh->seek(0, File::SeekFromBeginning);
@@ -533,22 +529,18 @@
}
else if (chunkid == "FVER")
{
- hasFVER = true;
parseFVER(chunkid, chunksize);
}
else if (chunkid == "INST")
{
- hasINST = true;
parseINST(chunkid, chunksize);
}
else if (chunkid == "MARK")
{
- hasMARK = true;
parseMARK(chunkid, chunksize);
}
else if (chunkid == "AESD")
{
- hasAESD = true;
parseAESD(chunkid, chunksize);
}
else if (chunkid == "NAME" ||
--- libaudiofile/WAVE.cpp 2011-08-20 23:22:26.000000000 +0200
+++ libaudiofile/WAVE.cpp 2011-09-19 13:28:20.621490114 +0200
@@ -711,11 +711,7 @@
bool hasFormat = false;
bool hasData = false;
- bool hasCue = false;
- bool hasList = false;
- bool hasPlayList = false;
bool hasFrameCount = false;
- bool hasINST = false;
Track *track = allocateTrack();
@@ -796,28 +792,24 @@
}
else if (chunkid == "cue ")
{
- hasCue = true;
result = parseCues(chunkid, chunksize);
if (result == AF_FAIL)
return AF_FAIL;
}
else if (chunkid == "LIST" || chunkid == "list")
{
- hasList = true;
result = parseList(chunkid, chunksize);
if (result == AF_FAIL)
return AF_FAIL;
}
else if (chunkid == "INST")
{
- hasINST = true;
result = parseInstrument(chunkid, chunksize);
if (result == AF_FAIL)
return AF_FAIL;
}
else if (chunkid == "plst")
{
- hasPlayList = true;
result = parsePlayList(chunkid, chunksize);
if (result == AF_FAIL)
return AF_FAIL;