mirror of
https://github.com/raysan5/raylib.git
synced 2025-09-14 15:28:14 +00:00
Remove dead assignments (#980)
The result of `success` is actually never used. Either we should check for it and return or remove it. I assume just checking the last one is okay.
This commit is contained in:
@@ -1870,9 +1870,9 @@ static int SaveWAV(Wave wave, const char *fileName)
|
||||
waveData.subChunkID[3] = 'a';
|
||||
waveData.subChunkSize = dataSize;
|
||||
|
||||
success = fwrite(&riffHeader, sizeof(RiffHeader), 1, wavFile);
|
||||
success = fwrite(&waveFormat, sizeof(WaveFormat), 1, wavFile);
|
||||
success = fwrite(&waveData, sizeof(WaveData), 1, wavFile);
|
||||
fwrite(&riffHeader, sizeof(RiffHeader), 1, wavFile);
|
||||
fwrite(&waveFormat, sizeof(WaveFormat), 1, wavFile);
|
||||
fwrite(&waveData, sizeof(WaveData), 1, wavFile);
|
||||
|
||||
success = fwrite(wave.data, dataSize, 1, wavFile);
|
||||
|
||||
|
Reference in New Issue
Block a user