* TODO description
(pattern: string)
| 363 | */ |
| 364 | |
| 365 | removePattern(pattern: string) { |
| 366 | const pkg = this.patterns[pattern]; |
| 367 | if (!pkg) { |
| 368 | return; |
| 369 | } |
| 370 | |
| 371 | const byName = this.patternsByPackage[pkg.name]; |
| 372 | if (!byName) { |
| 373 | return; |
| 374 | } |
| 375 | |
| 376 | byName.splice(byName.indexOf(pattern), 1); |
| 377 | delete this.patterns[pattern]; |
| 378 | } |
| 379 | |
| 380 | /** |
| 381 | * TODO description |
no outgoing calls
no test coverage detected