From 6c91185a77b206dac7948bfb2ba06a181afa6535 Mon Sep 17 00:00:00 2001 From: Frits van Bommel Date: Sat, 2 May 2009 11:58:50 +0200 Subject: [PATCH] Remove some dead code. --- gen/typeinf.h | 1 - gen/typinf.cpp | 11 ----------- 2 files changed, 12 deletions(-) diff --git a/gen/typeinf.h b/gen/typeinf.h index 503b58ca..7e688886 100644 --- a/gen/typeinf.h +++ b/gen/typeinf.h @@ -4,6 +4,5 @@ void DtoResolveTypeInfo(TypeInfoDeclaration* tid); void DtoDeclareTypeInfo(TypeInfoDeclaration* tid); void DtoConstInitTypeInfo(TypeInfoDeclaration* tid); -void DtoDefineTypeInfo(TypeInfoDeclaration* tid); #endif diff --git a/gen/typinf.cpp b/gen/typinf.cpp index 8db4d85e..66d5c402 100644 --- a/gen/typinf.cpp +++ b/gen/typinf.cpp @@ -332,17 +332,6 @@ void DtoConstInitTypeInfo(TypeInfoDeclaration* tid) tid->llvmDefine(); } -void DtoDefineTypeInfo(TypeInfoDeclaration* tid) -{ - if (tid->ir.defined) return; - tid->ir.defined = true; - - Logger::println("DtoDefineTypeInfo(%s)", tid->toChars()); - LOG_SCOPE; - - tid->llvmDefine(); -} - /* ========================================================================= */ void TypeInfoDeclaration::llvmDefine()