From 89234138f478567d1525943ef440988821f2e4a1 Mon Sep 17 00:00:00 2001 From: "Tristan B. Velloza Kildaire" Date: Sun, 7 Apr 2024 12:03:59 +0200 Subject: [PATCH] DGen - Removed old commented-out code from `emitExterns(File modOut, Module mod)` --- source/tlang/compiler/codegen/emit/dgen.d | 46 ----------------------- 1 file changed, 46 deletions(-) diff --git a/source/tlang/compiler/codegen/emit/dgen.d b/source/tlang/compiler/codegen/emit/dgen.d index da29db63..056c9795 100644 --- a/source/tlang/compiler/codegen/emit/dgen.d +++ b/source/tlang/compiler/codegen/emit/dgen.d @@ -1104,52 +1104,6 @@ public final class DCodeEmitter : CodeEmitter modOut.writeln(externEmit); } } - - /** - // * Only emit if there are entities - // * needing an emit - // * - // * FIXME: Emit for every other module than current one - // * must rather collect these - // */ - // if(externSets.length) - // { - // string externGroupBody; - // foreach(Entity entity; entities) - // { - - - // if(cast(Variable)entity) - // { - // Variable variable = cast(Variable)entity; - - // // FIXME: Add a generateSignature for Variable - // } - // else if(cast(Function)entity) - // { - // Function func = cast(Function)entity; - - - // } - // else - // { - // gprintln("EXTERN EMIT: Not possible for a non function or variable, CHECK PREDICATE!"); - // assert(false); - // } - // } - - - - // import std.string : format; - // modOut.writeln - // ( - // format - // ( - // "// Extern emits\n%s", - // externGroupBody - // ) - // ); - // } } /**