Skip to content

Commit 4a9bcb0

Browse files
authored
Remove old compatibility code (#7434)
Co-authored-by: Timshel <timshel@users.noreply.github.com>
1 parent 169aa5e commit 4a9bcb0

1 file changed

Lines changed: 0 additions & 12 deletions

File tree

src/db/models/cipher.rs

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -306,16 +306,6 @@ impl Cipher {
306306
type_data_json = Value::Null;
307307
}
308308

309-
// Clone the type_data and add some default value.
310-
let mut data_json = type_data_json.clone();
311-
312-
// NOTE: This was marked as *Backwards Compatibility Code*, but as of January 2021 this is still being used by upstream
313-
// data_json should always contain the following keys with every atype
314-
data_json["fields"] = json!(fields_json);
315-
data_json["name"] = json!(self.name);
316-
data_json["notes"] = json!(self.notes);
317-
data_json["passwordHistory"] = Value::Array(password_history_json.clone());
318-
319309
let collection_ids = if let Some(cipher_sync_data) = cipher_sync_data {
320310
if let Some(cipher_collections) = cipher_sync_data.cipher_collections.get(&self.uuid) {
321311
Cow::from(cipher_collections)
@@ -355,8 +345,6 @@ impl Cipher {
355345
"notes": self.notes,
356346
"fields": fields_json,
357347

358-
"data": data_json,
359-
360348
"passwordHistory": password_history_json,
361349

362350
// All Cipher types are included by default as null, but only the matching one will be populated

0 commit comments

Comments
 (0)