| 93 | } |
| 94 | |
| 95 | void GraphStruct::removeType(size_t id, bool updateReferences) { |
| 96 | assert(id < types().size()); |
| 97 | |
| 98 | // invalidate the cache |
| 99 | module().updateLastEditTime(); |
| 100 | |
| 101 | mTypes.erase(mTypes.begin() + id); |
| 102 | |
| 103 | // invalidate the current DataType |
| 104 | mDataType = {}; |
| 105 | |
| 106 | if (updateReferences) { updateNodeReferences(); } |
| 107 | } |
| 108 | |
| 109 | DataType GraphStruct::dataType() { |
| 110 | // if we have already calculated this, use that |
nothing calls this directly
no test coverage detected