[Scummvm-git-logs] scummvm master -> ea8ee0291c968eaf1463c25117bb8c7d2df77f05
mistydemeo
noreply at scummvm.org
Sat Jun 17 18:16:33 UTC 2023
This automated email contains information about 2 new commits which have been
pushed to the 'scummvm' repo located at https://github.com/scummvm/scummvm .
Summary:
e05e33a06e COMMON: remove unused variable assignment
ea8ee0291c AUDIO: remove unused variable assignment in dbopl
Commit: e05e33a06efa55846163d20bf128aa52196c80e6
https://github.com/scummvm/scummvm/commit/e05e33a06efa55846163d20bf128aa52196c80e6
Author: Misty De Meo (mistydemeo at gmail.com)
Date: 2023-06-17T10:08:24-07:00
Commit Message:
COMMON: remove unused variable assignment
Changed paths:
common/memorypool.cpp
diff --git a/common/memorypool.cpp b/common/memorypool.cpp
index 3338027627b..ed7eae6869d 100644
--- a/common/memorypool.cpp
+++ b/common/memorypool.cpp
@@ -139,7 +139,6 @@ void MemoryPool::freeUnusedPages() {
}
// Free all pages which are not in use.
- size_t freedPagesCount = 0;
for (size_t i = 0; i < _pages.size(); ++i) {
if (numberOfFreeChunksPerPage[i] == _pages[i].numChunks) {
// Remove all chunks of this page from the list of free chunks
@@ -152,13 +151,10 @@ void MemoryPool::freeUnusedPages() {
}
::free(_pages[i].start);
- ++freedPagesCount;
_pages[i].start = nullptr;
}
}
-// debug("freed %d pages out of %d", (int)freedPagesCount, (int)_pages.size());
-
// Remove all now unused pages
size_t newSize = 0;
for (size_t i = 0; i < _pages.size(); ++i) {
Commit: ea8ee0291c968eaf1463c25117bb8c7d2df77f05
https://github.com/scummvm/scummvm/commit/ea8ee0291c968eaf1463c25117bb8c7d2df77f05
Author: Misty De Meo (mistydemeo at gmail.com)
Date: 2023-06-17T10:12:30-07:00
Commit Message:
AUDIO: remove unused variable assignment in dbopl
Changed paths:
audio/softsynth/opl/dbopl.cpp
diff --git a/audio/softsynth/opl/dbopl.cpp b/audio/softsynth/opl/dbopl.cpp
index 263809537dc..5604365d94a 100644
--- a/audio/softsynth/opl/dbopl.cpp
+++ b/audio/softsynth/opl/dbopl.cpp
@@ -1239,9 +1239,7 @@ void Chip::GenerateBlock2( Bitu total, Bit32s* output ) {
while ( total > 0 ) {
Bit32u samples = ForwardLFO( total );
memset(output, 0, sizeof(Bit32s) * samples);
- int count = 0;
for( Channel* ch = chan; ch < chan + 9; ) {
- count++;
ch = (ch->*(ch->synthHandler))( this, samples, output );
}
total -= samples;
@@ -1253,9 +1251,7 @@ void Chip::GenerateBlock3( Bitu total, Bit32s* output ) {
while ( total > 0 ) {
Bit32u samples = ForwardLFO( total );
memset(output, 0, sizeof(Bit32s) * samples * 2);
- int count = 0;
for( Channel* ch = chan; ch < chan + 18; ) {
- count++;
ch = (ch->*(ch->synthHandler))( this, samples, output );
}
total -= samples;
More information about the Scummvm-git-logs
mailing list