Copy-paste helpers binnen lib/xmpp/ consolideren (_childByNs 5x, _split, _asObject) #2081
Labels
No labels
accepted
bug
declined
docs
duplicate
enhancement
good first issue
in-progress
needs-info
privacy
security
triage
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
LibreKAT/Ocideck#2081
Loading…
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Probleem
De XMPP-laag (lib/xmpp/) is de fundering voor Jitsi-videogesprekken (F3-milestone, NATIVE_CALLS.md §5) en NIET legacy. Maar binnen de laag zelf staan meerdere exacte copy-paste helpers die per bestand zijn gedupliceerd.
Gevonden duplicaten
1.
_childByNs(5x exact gekopieerd)Dezelfde helper om een child-element op namespace te vinden staat in 5 bestanden:
lib/xmpp/xmpp_chat.dart:297-303lib/xmpp/xmpp_presence_beacon.dart:212-218lib/xmpp/xmpp_snapshot.dart:314-320lib/xmpp/xmpp_key_exchange.dart:310-316lib/xmpp/xmpp_transport.dart:562-5682.
_split(2x)lib/collab/matrix_snapshot.dart:198-205lib/xmpp/xmpp_snapshot.dart:322-3293.
_asObject(2x)lib/collab/matrix_relay_transport.dart:323-327lib/xmpp/xmpp_transport.dart:575-579Voorstel
_childByNsnaarlib/xmpp/xmpp_stanza.dart(dat al bestaat en XML-stanza helpers biedt)._spliten_asObjectin een gedeeldecollab_codec.dartofutils/helper, aangezien ze in zowel Matrix als XMPP voorkomen.Schatting
~50 regels verwijderbaar.
Labels
duplicate, enhancement