Remove dead & duplicated code (#11405)
* Remove dead code * Make dead code happier * DRY pickle additional data calculation * Iterate
This commit is contained in:
parent
672ad98ec7
commit
27d79458da
25 changed files with 50 additions and 201 deletions
|
@ -429,15 +429,6 @@ export default class LegacyCallHandler extends EventEmitter {
|
|||
return this.calls.get(roomId) || null;
|
||||
}
|
||||
|
||||
public getAnyActiveCall(): MatrixCall | null {
|
||||
for (const call of this.calls.values()) {
|
||||
if (call.state !== CallState.Ended) {
|
||||
return call;
|
||||
}
|
||||
}
|
||||
return null;
|
||||
}
|
||||
|
||||
public getAllActiveCalls(): MatrixCall[] {
|
||||
const activeCalls: MatrixCall[] = [];
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue