| 432 | } |
| 433 | |
| 434 | bool ClassDefinitionImpl::removeConnectClause(const std::string& source, const std::string& target) { |
| 435 | auto normalized = validateAndNormalizeConnectClause(source, target); |
| 436 | const std::string connectionId = ConnectClauseImpl::connectionIdFromEndpoints(normalized.first, normalized.second); |
| 437 | |
| 438 | ensureConnectionCache(); |
| 439 | auto it = m_connections.find(connectionId); |
| 440 | if (it == m_connections.end() || !it->second->isActive()) { |
| 441 | return false; |
| 442 | } |
| 443 | |
| 444 | removeConnectClause(it->second.get()); |
| 445 | return true; |
| 446 | } |
| 447 | |
| 448 | void ClassDefinitionImpl::ensureConnectionCache() { |
| 449 | if (!m_connectionsDirty) { |