From c6c96d9cad6c0b461e30c8b60d16a985b99d5d4e Mon Sep 17 00:00:00 2001 From: "Markus F.X.J. Oberhumer" Date: Sun, 17 Dec 2000 10:18:45 +0000 Subject: [PATCH] Reverted my last patch and removed updateCallbackSizes() again. Should use a subclass of UiPacker for special display. committer: mfx 977048325 +0000 --- src/packer.h | 3 --- src/ui.cpp | 2 -- 2 files changed, 5 deletions(-) diff --git a/src/packer.h b/src/packer.h index cdf6948d..90c50fc6 100644 --- a/src/packer.h +++ b/src/packer.h @@ -231,9 +231,6 @@ protected: virtual upx_byte *optimizeReloc32(upx_byte *in,unsigned relocnum,upx_byte *out,upx_byte *image,int bs,int *big); virtual unsigned unoptimizeReloc32(upx_byte **in,upx_byte *image,MemBuffer *out,int bs); - // UI util - virtual void updateCallbackSizes(unsigned *, unsigned *) const { } - protected: InputFile *fi; diff --git a/src/ui.cpp b/src/ui.cpp index 0e7cb832..8e2d9541 100644 --- a/src/ui.cpp +++ b/src/ui.cpp @@ -356,8 +356,6 @@ void UiPacker::doCallback(unsigned isize, unsigned osize) if (s->pass < 0) // no callback wanted return; - p->updateCallbackSizes(&isize, &osize); - if (s->u_len == 0 || isize > s->u_len) return; // check if we should update the display