compile: promote add_assignment and out_contexts
[nit.git] / src / compiling / compiling_methods.nit
index cf8b748..4233c68 100644 (file)
@@ -59,21 +59,10 @@ redef class CompilerVisitor
                return v
        end
 
-       # Add a assignment between a variable and an expression
-       fun add_assignment(v: String, s: String)
-       do
-               if v != s then
-                       add_instr("{v} = {s};")
-               end
-       end
-
        readable writable var _cfc: nullable CFunctionContext
 
        readable writable var _nmc: nullable NitMethodContext
 
-       # C outputs written outside the current C function.
-       readable writable var _out_contexts: Array[CContext] = new Array[CContext]
-
        # Generate an fprintf to display an error location
        fun printf_locate_error(node: PNode): String
        do