nitc: FFI and nitni use MModule::c_name
[nit.git] / src / nitni / nitni_base.nit
index 4f31aaf..6685029 100644 (file)
@@ -22,7 +22,6 @@ module nitni_base
 
 import parser
 import modelbuilder # builder only for externcalls
-private import compiler::abstract_compiler
 
 redef class MMethod
        # Short name of this method in C (without the class name)
@@ -52,12 +51,6 @@ redef class MMethod
        end
 end
 
-redef class MModule
-       # Mangled name of this module in C
-       fun cname: String do return c_name # FIXME this is a hack to keep the internal FFI
-       # API independent of the compilers while still using the `MModule::c_name` service.
-end
-
 redef class MMethodDef
        # Name of the function to callback this method from C,
        # also used in other functions names used for this method.