| 230 | } |
| 231 | |
| 232 | void SpriteFrameCache::removeSpriteFramesFromFileContent(std::string_view plist_content) |
| 233 | { |
| 234 | auto dict = |
| 235 | FileUtils::getInstance()->getValueMapFromData(plist_content.data(), static_cast<int>(plist_content.size())); |
| 236 | if (dict.empty()) |
| 237 | { |
| 238 | AXLOGD("SpriteFrameCache:removeSpriteFramesFromFileContent: create dict by fail."); |
| 239 | return; |
| 240 | } |
| 241 | removeSpriteFramesFromDictionary(dict); |
| 242 | } |
| 243 | |
| 244 | void SpriteFrameCache::removeSpriteFramesFromDictionary(ValueMap& dictionary) |
| 245 | { |