From c8229b8b052d41f9e9df0553b015e88a7493f8f7 Mon Sep 17 00:00:00 2001 From: Pascal Rigaux Date: Tue, 27 Jan 2009 17:30:42 +0000 Subject: do not check there is enough memory maybe a better solution would be to adapt the "enough memory" check to our needs --- src/common.inc | 47 ----------------------------------------------- 1 file changed, 47 deletions(-) (limited to 'src') diff --git a/src/common.inc b/src/common.inc index af6a46d..53f616d 100644 --- a/src/common.inc +++ b/src/common.inc @@ -58,18 +58,6 @@ } def -% - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -% -% Enough memory? -% -% ( ) ==> ( true|false ) -% -/enough_mem { - biosmem 4 20 shl lt - biosmem mem.check 20 shl ge or -} def - - % - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - % % Check if there are boot directories for 32 & 64bit. @@ -215,11 +203,6 @@ menu.texts menu.entry 0 max menu.texts length 1 sub min get dup "mem.min[%s]" mem.min sprintf "mem.msg[%s]" mem.msg sprintf - - enough_mem not { - nomem_popup - "" -1 0 return - } if } if % some tricks to make it possible to review the complete command line @@ -1373,25 +1356,6 @@ } def -% - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -% Warn that we don't have enough memory. -% -% ( ) ==> ( ) -% -/nomem_popup { - window.dialog - - dup .title "Sorry, but..." put - dup .text mem.show put - dup .buttons [ - button.ok button.default actNothing button.setaction - ] put - dup window.init - window.show - -} def - - % - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - % Show "power off" popup. % @@ -1549,17 +1513,6 @@ ptheme { % Array of menu entries which should not get an 'install' option appended. /config.noinstallopt "noinstallopt" [ ] gfxconfig.set.array_str -% Mininum required memory in MB. -/mem.check { - mem.min gfxconfig.int dup .undef eq { pop 0 } if -} def - -% Message to print if we fail minimum memory requirement. -/mem.show { - mem.msg gfxconfig.str dup .undef eq { pop "Not enough memory." } if -} def - - % - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - % drawing area size -- cgit v1.2.1