Skip to content

Commit

Permalink
Remove unused code
Browse files Browse the repository at this point in the history
  • Loading branch information
dumganhar committed Oct 29, 2024
1 parent f228aad commit 36f0534
Showing 1 changed file with 0 additions and 10 deletions.
10 changes: 0 additions & 10 deletions native/cocos/editor-support/spine-wasm/spine-skeleton-instance.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -366,10 +366,6 @@ void SpineSkeletonInstance::collectMeshData() {

currMesh.blendMode = static_cast<uint32_t>(slot->getData().getBlendMode());
if (_userData.useSlotTexture) {
// auto iter = _slotTextureSet.find(slot);
// if (iter != _slotTextureSet.end()) {
// currMesh.textureID = iter->second;
// }
if (_slotTextureSet.containsKey(slot)) {
currMesh.textureID = _slotTextureSet[slot];
}
Expand Down Expand Up @@ -517,12 +513,6 @@ void SpineSkeletonInstance::setSlotTexture(const std::string &slotName, uint32_t
auto slot = _skeleton->findSlot(slotName.c_str());
if (!slot) return;
_userData.useSlotTexture = true;
// auto iter = _slotTextureSet.find(slot);
// if (iter != _slotTextureSet.end()) {
// iter->second = textureID;
// } else {
// _slotTextureSet[slot] = textureID;
// }

_slotTextureSet.put(slot, textureID);
}

0 comments on commit 36f0534

Please sign in to comment.