Skip to content
This repository was archived by the owner on Mar 4, 2023. It is now read-only.

Commit af2cc46

Browse files
committed
removed key property from server message (unused)
1 parent 2b6a1ed commit af2cc46

File tree

1 file changed

+2
-6
lines changed

1 file changed

+2
-6
lines changed

src/datasync/wsremoteconnector.cpp

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -159,7 +159,6 @@ void WsRemoteConnector::download(const ObjectKey &key, const QByteArray &keyProp
159159
QJsonObject data;
160160
data[QStringLiteral("type")] = QString::fromUtf8(key.first);
161161
data[QStringLiteral("key")] = key.second;
162-
data[QStringLiteral("keyProperty")] = QString::fromUtf8(keyProperty);
163162
sendCommand("load", data);
164163

165164
//if cryptor is valid, expect the reply to be encrypted
@@ -180,7 +179,6 @@ void WsRemoteConnector::upload(const ObjectKey &key, const QJsonObject &object,
180179
QJsonObject data;
181180
data[QStringLiteral("type")] = QString::fromUtf8(key.first);
182181
data[QStringLiteral("key")] = key.second;
183-
data[QStringLiteral("keyProperty")] = QString::fromUtf8(keyProperty);
184182
if(cryptor) {
185183
try {
186184
data[QStringLiteral("value")] = cryptor->encrypt(key, object, keyProperty);
@@ -196,7 +194,7 @@ void WsRemoteConnector::upload(const ObjectKey &key, const QJsonObject &object,
196194
}
197195
}
198196

199-
void WsRemoteConnector::remove(const ObjectKey &key, const QByteArray &keyProperty)
197+
void WsRemoteConnector::remove(const ObjectKey &key, const QByteArray &)
200198
{
201199
if(state != Idle)
202200
emit operationFailed(QStringLiteral("Remote connector state does not allow removals"));
@@ -205,12 +203,11 @@ void WsRemoteConnector::remove(const ObjectKey &key, const QByteArray &keyProper
205203
QJsonObject data;
206204
data[QStringLiteral("type")] = QString::fromUtf8(key.first);
207205
data[QStringLiteral("key")] = key.second;
208-
data[QStringLiteral("keyProperty")] = QString::fromUtf8(keyProperty);
209206
sendCommand("remove", data);
210207
}
211208
}
212209

213-
void WsRemoteConnector::markUnchanged(const ObjectKey &key, const QByteArray &keyProperty)
210+
void WsRemoteConnector::markUnchanged(const ObjectKey &key, const QByteArray &)
214211
{
215212
if(state != Idle)
216213
emit operationFailed(QStringLiteral("Remote connector state does not allow marking as unchanged"));
@@ -219,7 +216,6 @@ void WsRemoteConnector::markUnchanged(const ObjectKey &key, const QByteArray &ke
219216
QJsonObject data;
220217
data[QStringLiteral("type")] = QString::fromUtf8(key.first);
221218
data[QStringLiteral("key")] = key.second;
222-
data[QStringLiteral("keyProperty")] = QString::fromUtf8(keyProperty);
223219
sendCommand("markUnchanged", data);
224220
}
225221

0 commit comments

Comments
 (0)