diff --git a/similar/editor/info.cpp b/similar/editor/info.cpp index 69f580efe..2600d290f 100644 --- a/similar/editor/info.cpp +++ b/similar/editor/info.cpp @@ -20,9 +20,6 @@ COPYRIGHT 1993-1998 PARALLAX SOFTWARE CORPORATION. ALL RIGHTS RESERVED. #include #include #include -#ifdef DO_MEMINFO -#include -#endif #include "inferno.h" #include "window.h" @@ -43,36 +40,6 @@ COPYRIGHT 1993-1998 PARALLAX SOFTWARE CORPORATION. ALL RIGHTS RESERVED. int init_info; -#ifdef DO_MEMINFO -struct meminfo { - int LargestBlockAvail; - int MaxUnlockedPage; - int LargestLockablePage; - int LinAddrSpace; - int NumFreePagesAvail; - int NumPhysicalPagesFree; - int TotalPhysicalPages; - int FreeLinAddrSpace; - int SizeOfPageFile; - int Reserved[3]; -} MemInfo; - -#define DPMI_INT 0x31 - -void read_mem_info() -{ - union REGS regs; - struct SREGS sregs; - - regs.x.eax = 0x00000500; - memset( &sregs, 0, sizeof(sregs) ); - sregs.es = FP_SEG( &MemInfo ); - regs.x.edi = FP_OFF( &MemInfo ); - - int386x( DPMI_INT, ®s, ®s, &sregs ); -} -#endif - static char * get_object_type(int num, char *name) { switch (num) {