From e1b16e337042ab3c97e4470b86d32b0cc068df81 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Alexis=20Laferri=C3=A8re?= Date: Thu, 1 May 2014 11:49:33 -0400 Subject: [PATCH] lib: mnit_app use app.nit MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit Signed-off-by: Alexis Laferrière --- lib/mnit/mnit_app.nit | 12 ++---------- 1 file changed, 2 insertions(+), 10 deletions(-) diff --git a/lib/mnit/mnit_app.nit b/lib/mnit/mnit_app.nit index fdb9409..68af697 100644 --- a/lib/mnit/mnit_app.nit +++ b/lib/mnit/mnit_app.nit @@ -17,13 +17,14 @@ # General Mnit application structure module mnit_app +import ::app import mnit_display # An App instance serves as base to every Mnit projects. # # This class is redefed by plateforme modules and so # App can be specialized directly in the user app. -abstract class App +redef class App type IE: InputEvent type D: Display type I: Image @@ -83,15 +84,6 @@ abstract class App # Called before destroying the window fun term_window do end - # Helper function for logging - fun log_error( msg: String ) do print "#nit error: {msg}" - - # Helper function for logging - fun log_warning( msg: String ) do print "#nit warn: {msg}" - - # Helper function for logging - fun log_info( msg: String ) do print "#nit info: {msg}" - # Receive and deal with all inputs fun input( event: InputEvent ): Bool do -- 1.7.9.5