Remove commented out code.
authorCamila Ayres <hello@camilasan.com>
Thu, 6 Jun 2024 09:57:05 +0000 (11:57 +0200)
committerCamila Ayres <hello@camilasan.com>
Fri, 5 Jul 2024 10:56:52 +0000 (12:56 +0200)
Signed-off-by: Camila Ayres <hello@camilasan.com>
src/libsync/discovery.cpp

index f2e90b58ee3e8831ac536c4006f3e0ddf76bebea..a799dd7a5a976a4daa136ce8e7791b17f29fca18 100644 (file)
@@ -1433,19 +1433,6 @@ void ProcessDirectoryJob::processFileAnalyzeLocalInfo(
                 item->_e2eEncryptionServerCapability = EncryptionStatusEnums::fromEndToEndEncryptionApiVersion(_discoveryData->_account->capabilities().clientSideEncryptionVersion());
             }
             postProcessLocalNew();
-            /*if (item->isDirectory() && item->_instruction == CSYNC_INSTRUCTION_NEW && item->_direction == SyncFileItem::Up
-                && _discoveryData->_account->capabilities().clientSideEncryptionVersion() >= 2.0) {
-                OCC::SyncJournalFileRecord rec;
-                _discoveryData->_statedb->findEncryptedAncestorForRecord(item->_file, &rec);
-                if (rec.isValid() && rec._e2eEncryptionStatus >= OCC::SyncJournalFileRecord::EncryptionStatus::EncryptedMigratedV2_0) {
-                    qCDebug(lcDisco) << "Attempting to create a subfolder in top-level E2EE V2 folder. Ignoring.";
-                    item->_instruction = CSYNC_INSTRUCTION_IGNORE;
-                    item->_direction = SyncFileItem::None;
-                    item->_status = SyncFileItem::NormalError;
-                    item->_errorString = tr("Creating nested encrypted folders is not supported yet.");
-                }
-            }*/
-
             finalize();
             return;
         }