remove unused variable in pole

This commit is contained in:
Thomas Fussell 2016-12-14 07:56:51 +00:00
parent 2a6f2d6e2e
commit db940fedc5

View File

@ -510,9 +510,6 @@ void DirTree::load( std::uint8_t* buffer, std::size_t size )
{
std::size_t p = i * 128;
// would be < 32 if first char in the name isn't printable
std::size_t prefix = 32;
// parse name of this entry, which stored as Unicode 16-bit
std::string name;
auto name_len = static_cast<std::size_t>(readU16( buffer + 0x40+p ));
@ -523,7 +520,6 @@ void DirTree::load( std::uint8_t* buffer, std::size_t size )
// first char isn't printable ? remove it...
if( buffer[p] < 32 )
{
prefix = buffer[0];
name.erase( 0,1 );
}