mirror of
https://github.com/xomboverlord/ldc.git
synced 2026-01-16 21:03:14 +01:00
Cleanup: Remove unused code in backend, silence some warnings.
This removed quite some clutter that has presumably piled up because LDC is seldom built with a lot of warnings enabled due to DMDFE.
This commit is contained in:
@@ -293,7 +293,6 @@ DValue* DtoCastClass(DValue* val, Type* _to)
|
||||
// get the from class
|
||||
ClassDeclaration* cd = fc->sym->isClassDeclaration();
|
||||
DtoResolveClass(cd); // add this
|
||||
IrStruct* irstruct = cd->ir.irStruct;
|
||||
IrTypeClass* typeclass = fc->irtype->isClass();
|
||||
|
||||
// find interface impl
|
||||
@@ -332,7 +331,6 @@ DValue* DtoCastClass(DValue* val, Type* _to)
|
||||
// x -> class
|
||||
else {
|
||||
Logger::println("to class");
|
||||
int poffset;
|
||||
// interface -> class
|
||||
if (fc->sym->isInterfaceDeclaration()) {
|
||||
Logger::println("interface cast");
|
||||
|
||||
Reference in New Issue
Block a user