ffi: minor clean up
authorAlexis Laferrière <alexis.laf@xymus.net>
Sat, 10 May 2014 13:27:33 +0000 (09:27 -0400)
committerAlexis Laferrière <alexis.laf@xymus.net>
Mon, 12 May 2014 17:53:57 +0000 (13:53 -0400)
Signed-off-by: Alexis Laferrière <alexis.laf@xymus.net>

src/common_ffi/common_ffi.nit

index ae2734a..2a9e7d4 100644 (file)
@@ -46,7 +46,7 @@ redef class MModule
        # Complete the compilation of the FFI code
        fun finalize_ffi_wrapper(compdir: String, mainmodule: MModule)
        do
-               for language in present_languages do if ffi_callbacks.keys.has(language) then
+               for language in ffi_callbacks.keys do
                        for callback in ffi_callbacks[language] do
                                language.compile_callback(callback, self, mainmodule, ffi_ccu.as(not null))
                        end