mirror of
https://github.com/Microsoft/calculator.git
synced 2025-08-22 14:13:30 -07:00
Remove unused allocation code
This commit is contained in:
parent
7a68756b2b
commit
713faeb022
1 changed files with 6 additions and 15 deletions
|
@ -207,10 +207,6 @@ PNUMBER _createnum( _In_ uint32_t size )
|
||||||
|
|
||||||
{
|
{
|
||||||
PNUMBER pnumret= nullptr;
|
PNUMBER pnumret= nullptr;
|
||||||
uint32_t cbAlloc;
|
|
||||||
|
|
||||||
if (SUCCEEDED(Calc_ULongAdd(cbAlloc, sizeof(NUMBER), &cbAlloc)))
|
|
||||||
{
|
|
||||||
try
|
try
|
||||||
{
|
{
|
||||||
pnumret = new NUMBER();
|
pnumret = new NUMBER();
|
||||||
|
@ -221,11 +217,6 @@ PNUMBER _createnum( _In_ uint32_t size )
|
||||||
}
|
}
|
||||||
// Fill mantissa vector with zeros
|
// Fill mantissa vector with zeros
|
||||||
pnumret->mant.insert(pnumret->mant.end(), size, 0);
|
pnumret->mant.insert(pnumret->mant.end(), size, 0);
|
||||||
}
|
|
||||||
else
|
|
||||||
{
|
|
||||||
throw( CALC_E_INVALIDRANGE );
|
|
||||||
}
|
|
||||||
return( pnumret );
|
return( pnumret );
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue