remove patchFilter32()

This commit is contained in:
John Reiser
2006-08-22 20:49:28 -07:00
parent 12e4bcba5d
commit 579ce20cad
5 changed files with 16 additions and 25 deletions
-21
View File
@@ -360,27 +360,6 @@ void Packer::addFilter32(int filter_id)
#undef MRUFLT
/*************************************************************************
// patchFilter32
**************************************************************************/
bool Packer::patchFilter32(void *loader, int lsize, const Filter *ft)
{
if (ft->id == 0)
return false;
assert(ft->calls > 0);
if (0x80==(ft->id & 0xF0)) {
int const mru = ph.n_mru ? 1+ ph.n_mru : 0;
if (mru && mru!=256) {
unsigned const is_pwr2 = (0==((mru -1) & mru));
patch_le32(0x80 + (char *)loader, lsize - 0x80, "NMRU", mru - is_pwr2);
}
}
return true;
}
/*
vi:ts=4:et:nowrap
*/