| 297 | } |
| 298 | |
| 299 | bool Item::itemsEqual(ItemConstPtr const& a, ItemConstPtr const& b) { |
| 300 | if (!a && !b) // Both are null |
| 301 | return true; |
| 302 | if (a && b) // Both aren't null, compare |
| 303 | return a->stackableWith(b); |
| 304 | else // One is null, so not equal |
| 305 | return false; |
| 306 | } |
| 307 | |
| 308 | } |
nothing calls this directly
no test coverage detected