From 875ecc051b0f3effaeada5dff69d08bc1e69f28d Mon Sep 17 00:00:00 2001
From: KernelDeimos <7225168+KernelDeimos@users.noreply.github.com>
Date: Thu, 30 Oct 2025 15:50:00 -0400
Subject: [PATCH] clean: remove dead code from ll_write
The `_storage_upload` method in ll_write.js is no longer used, which
also means the LLWriteBase class is no longer necessary.
---
.../src/filesystem/ll_operations/ll_write.js | 150 +-----------------
1 file changed, 4 insertions(+), 146 deletions(-)
diff --git a/src/backend/src/filesystem/ll_operations/ll_write.js b/src/backend/src/filesystem/ll_operations/ll_write.js
index 0b592274b..b566dd4ff 100644
--- a/src/backend/src/filesystem/ll_operations/ll_write.js
+++ b/src/backend/src/filesystem/ll_operations/ll_write.js
@@ -16,159 +16,17 @@
* You should have received a copy of the GNU Affero General Public License
* along with this program. If not, see .
*/
-const { Context } = require("../../util/context");
const { LLFilesystemOperation } = require("./definitions");
-const { RESOURCE_STATUS_PENDING_CREATE } = require("../../modules/puterfs/ResourceService.js");
-const { NodeUIDSelector } = require("../node/selectors");
-const { UploadProgressTracker } = require("../storage/UploadProgressTracker");
-const FSNodeContext = require("../FSNodeContext");
const APIError = require("../../api/APIError");
-const { stuck_detector_stream, hashing_stream } = require("../../util/streamutil");
-const { OperationFrame } = require("../../services/OperationTraceService");
-const { DB_WRITE } = require("../../services/database/consts");
-
-const crypto = require('crypto');
-
-const STUCK_STATUS_TIMEOUT = 10 * 1000;
-const STUCK_ALARM_TIMEOUT = 20 * 1000;
-
-/**
- * Base class for low-level write operations providing common storage upload functionality.
- * @extends LLFilesystemOperation
- */
-class LLWriteBase extends LLFilesystemOperation {
- static MODULES = {
- config: require('../../config.js'),
- simple_retry: require('../../util/retryutil.js').simple_retry,
- }
-
- /**
- * Uploads a file to storage with progress tracking and error handling.
- * @param {Object} params - Upload parameters
- * @param {string} params.uuid - Unique identifier for the file
- * @param {string} [params.bucket] - Storage bucket name
- * @param {string} [params.bucket_region] - Storage bucket region
- * @param {Object} params.file - File object containing stream or buffer
- * @param {Object} params.tmp - Temporary file information
- * @returns {Promise