| 855 | } |
| 856 | |
| 857 | void DUContext::removeImportedParentContext(DUContext* context) |
| 858 | { |
| 859 | ENSURE_CAN_WRITE |
| 860 | DUCHAIN_D_DYNAMIC(DUContext); |
| 861 | |
| 862 | Import import(context, this, CursorInRevision::invalid()); |
| 863 | |
| 864 | for (unsigned int a = 0; a < d->m_importedContextsSize(); ++a) { |
| 865 | if (d->m_importedContexts()[a] == import) { |
| 866 | d->m_importedContextsList().remove(a); |
| 867 | break; |
| 868 | } |
| 869 | } |
| 870 | |
| 871 | if (!context) |
| 872 | return; |
| 873 | |
| 874 | context->m_dynamicData->removeImportedChildContext(this); |
| 875 | } |
| 876 | |
| 877 | KDevVarLengthArray<IndexedDUContext> DUContext::indexedImporters() const |
| 878 | { |