Delete unused variable initialization code

Line 4536 in tinygltf.h file, there is unused variable initialization code like below.
```c++
    const auto pBuffer = pAttribute->buffer();
```

gcc compiler complain about that unused variable. 

I found there is no side-effect in  `pAttribute->buffer()` call and also pBuffer variable is never used. Therefore I delete that line entirely.
This commit is contained in:
snowapril 2021-03-30 00:16:04 +09:00
parent 151495558e
commit 87da1e775f

View File

@ -4533,7 +4533,6 @@ static bool ParseDracoExtension(Primitive *primitive, Model *model,
int dracoAttributeIndex = attribute.second.Get<int>();
const auto pAttribute = mesh->GetAttributeByUniqueId(dracoAttributeIndex);
const auto pBuffer = pAttribute->buffer();
const auto componentType =
model->accessors[primitiveAttribute->second].componentType;