| 237 | } |
| 238 | |
| 239 | int ImageCache::getVariantCount(const String& url) const { |
| 240 | const auto& it = _cache.find(url); |
| 241 | if (it != _cache.end()) { |
| 242 | return (it->second)->getVariantCount(); |
| 243 | } else { |
| 244 | return 0; |
| 245 | } |
| 246 | } |
| 247 | |
| 248 | } // namespace snap::drawing |