mirror of
https://github.com/ldc-developers/ldc.git
synced 2025-04-29 06:30:39 +03:00
[cleanup] Remove unused IrTypeAggr::default_fields and accessors.
This commit is contained in:
parent
e7838a30a6
commit
de742a06e2
3 changed files with 0 additions and 26 deletions
|
@ -65,7 +65,6 @@ void IrTypeClass::addBaseClassData(
|
|||
// mirror the sd->fields array but only fill in contributors
|
||||
const size_t n = base->fields.dim;
|
||||
LLSmallVector<VarDeclaration*, 16> data(n, NULL);
|
||||
default_fields.reserve(n);
|
||||
|
||||
// first fill in the fields with explicit initializers
|
||||
for (size_t index = 0; index < n; ++index)
|
||||
|
@ -158,10 +157,6 @@ void IrTypeClass::addBaseClassData(
|
|||
|
||||
assert(vd->offset >= offset && "it's a bug... most likely DMD bug 2481");
|
||||
|
||||
// add to default field list
|
||||
if (cd == base)
|
||||
default_fields.push_back(vd);
|
||||
|
||||
// get next aligned offset for this type
|
||||
size_t alignedoffset = realignOffset(offset, vd->type);
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue