Skip to content

Commit db8ad9c

Browse files
committed
Remove find pattern's unused variable
1 parent 95e1e74 commit db8ad9c

1 file changed

Lines changed: 1 addition & 4 deletions

File tree

include/dynlibutils/module.hpp

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -426,10 +426,7 @@ class CModule : public CMemory
426426
if (!pSection || !pSection->IsValid())
427427
return 0;
428428

429-
const CMemory pBase = *pSection;
430-
const std::size_t sectionSize = pSection->m_nSectionSize;
431-
432-
CMemory pIter = pStartAddress ? pStartAddress : pBase;
429+
CMemory pIter = pStartAddress ? pStartAddress : *pSection;
433430

434431
std::size_t foundCount = 0;
435432

0 commit comments

Comments
 (0)