mirror of
https://github.com/ZDoom/gzdoom.git
synced 2024-11-11 07:12:02 +00:00
Remove PClass::Extend()
This commit is contained in:
parent
85c8218441
commit
15208188de
2 changed files with 0 additions and 23 deletions
|
@ -3374,27 +3374,6 @@ PClass *PClass::CreateDerivedClass(FName name, unsigned int size)
|
||||||
return type;
|
return type;
|
||||||
}
|
}
|
||||||
|
|
||||||
//==========================================================================
|
|
||||||
//
|
|
||||||
// PClass :: Extend
|
|
||||||
//
|
|
||||||
// Add <extension> bytes to the end of this class and possibly more to meet
|
|
||||||
// alignment restrictions. Returns the start of the extended block.
|
|
||||||
//
|
|
||||||
//==========================================================================
|
|
||||||
|
|
||||||
unsigned int PClass::Extend(unsigned int extension, unsigned int alignment)
|
|
||||||
{
|
|
||||||
assert(this->bRuntimeClass);
|
|
||||||
|
|
||||||
unsigned int oldsize = Size;
|
|
||||||
unsigned int padto = (oldsize + alignment - 1) & ~(alignment - 1);
|
|
||||||
Size = padto + extension;
|
|
||||||
Defaults = (BYTE *)M_Realloc(Defaults, Size);
|
|
||||||
memset(Defaults + oldsize, 0, Size - oldsize);
|
|
||||||
return padto;
|
|
||||||
}
|
|
||||||
|
|
||||||
//==========================================================================
|
//==========================================================================
|
||||||
//
|
//
|
||||||
// PClass :: AddField
|
// PClass :: AddField
|
||||||
|
|
|
@ -725,8 +725,6 @@ public:
|
||||||
void InsertIntoHash();
|
void InsertIntoHash();
|
||||||
DObject *CreateNew() const;
|
DObject *CreateNew() const;
|
||||||
PClass *CreateDerivedClass(FName name, unsigned int size);
|
PClass *CreateDerivedClass(FName name, unsigned int size);
|
||||||
unsigned int Extend(unsigned int extension, unsigned int alignment);
|
|
||||||
unsigned int Extend(const PType *type) { return Extend(type->Size, type->Align); }
|
|
||||||
PField *AddField(FName name, PType *type, DWORD flags=0) override;
|
PField *AddField(FName name, PType *type, DWORD flags=0) override;
|
||||||
void InitializeActorInfo();
|
void InitializeActorInfo();
|
||||||
void BuildFlatPointers();
|
void BuildFlatPointers();
|
||||||
|
|
Loading…
Reference in a new issue