| 214 | } |
| 215 | |
| 216 | void IgnoreManager::removeIgnorePatterns(ProjectExplorer::Project *project) |
| 217 | { |
| 218 | m_projectIgnorePatterns.remove(project); |
| 219 | |
| 220 | QStringList keysToRemove; |
| 221 | for (auto it = m_ignoreCache.begin(); it != m_ignoreCache.end(); ++it) { |
| 222 | if (it.key().contains(project->projectDirectory().toUrlishString())) |
| 223 | keysToRemove << it.key(); |
| 224 | } |
| 225 | |
| 226 | for (const QString &key : keysToRemove) |
| 227 | m_ignoreCache.remove(key); |
| 228 | |
| 229 | if (m_projectConnections.contains(project)) { |
| 230 | disconnect(m_projectConnections[project]); |
| 231 | m_projectConnections.remove(project); |
| 232 | } |
| 233 | |
| 234 | LOG_MESSAGE(QString("Removed ignore patterns for project: %1").arg(project->displayName())); |
| 235 | } |
| 236 | |
| 237 | void IgnoreManager::reloadAllPatterns() |
| 238 | { |
nothing calls this directly
no test coverage detected