From 87a608136f73bc13f75c2d830dbedc4a7ba53c85 Mon Sep 17 00:00:00 2001 From: Albert Vaca Cintora Date: Thu, 23 Mar 2023 15:55:21 +0100 Subject: [PATCH] Remove check for a legacy field Introduced in ee5bf89071797ecad71f7d9acdab7041bfa70358 --- core/networkpacket.cpp | 3 --- 1 file changed, 3 deletions(-) diff --git a/core/networkpacket.cpp b/core/networkpacket.cpp index ad402e4e5..ddf1a7b35 100644 --- a/core/networkpacket.cpp +++ b/core/networkpacket.cpp @@ -116,9 +116,6 @@ bool NetworkPacket::unserialize(const QByteArray &a, NetworkPacket *np) auto variant = parser.toVariant().toMap(); qvariant2qobject(variant, np); - if (np->m_payloadSize == -1) { - np->m_payloadSize = np->get(QStringLiteral("size"), -1); - } np->m_payloadTransferInfo = variant[QStringLiteral("payloadTransferInfo")].toMap(); // Will return an empty qvariantmap if was not present, which is ok // Ids containing characters that are not allowed as dbus paths would make app crash