refactor: remove deprecated RECEIVED_DATA broadcast

This commit is contained in:
andrekir 2024-01-10 12:24:18 -03:00
parent dcb19da723
commit ed649470f9
3 changed files with 1 additions and 16 deletions

View file

@ -85,9 +85,6 @@ class MeshService : Service(), Logging {
/// Intents broadcast by MeshService
/* @Deprecated(message = "Does not filter by port number. For legacy reasons only broadcast for UNKNOWN_APP, switch to ACTION_RECEIVED")
const val ACTION_RECEIVED_DATA = "$prefix.RECEIVED_DATA" */
private fun actionReceived(portNum: String) = "$prefix.RECEIVED.$portNum"
/// generate a RECEIVED action filter string that includes either the portnumber as an int, or preferably a symbolic name from portnums.proto

View file

@ -24,13 +24,6 @@ class MeshServiceBroadcasts(
payload
)
)
/*
// For the time being we ALSO broadcast using old ACTION_RECEIVED_DATA field for any oldschool opaque packets
// newer packets (that have a non zero portnum) are only broadcast using the standard mechanism.
if(payload.dataType == Portnums.PortNum.UNKNOWN_APP_VALUE)
explicitBroadcast(Intent(MeshService.ACTION_RECEIVED_DATA).putExtra(EXTRA_PAYLOAD, payload))
*/
}
fun broadcastNodeChange(info: NodeInfo) {