From 0ecae43d2f600ed79af15bf58c48be817b02da34 Mon Sep 17 00:00:00 2001 From: KernelDeimos <7225168+KernelDeimos@users.noreply.github.com> Date: Tue, 6 Jan 2026 18:50:23 -0500 Subject: [PATCH] clean: remove dead code in hl_mkdir Remove a method in hl_mkdir which was determined to not be referred to anywhere. hl_mkdir was re-tested to verify that this did not cause a regression. --- .../src/filesystem/hl_operations/hl_mkdir.js | 27 ------------------- 1 file changed, 27 deletions(-) diff --git a/src/backend/src/filesystem/hl_operations/hl_mkdir.js b/src/backend/src/filesystem/hl_operations/hl_mkdir.js index 83a29811c..07d505acf 100644 --- a/src/backend/src/filesystem/hl_operations/hl_mkdir.js +++ b/src/backend/src/filesystem/hl_operations/hl_mkdir.js @@ -435,33 +435,6 @@ class HLMkdir extends HLFilesystemOperation { return tree_op.leaves[0]; } - async _get_existing_parent ({ parent_node }) { - const { context, values } = this; - const { _path } = this.modules; - const fs = context.get('services').get('filesystem'); - - const target_dirname = _path.dirname(values.path); - const dirs = target_dirname === '.' ? [] - : target_dirname.split('/').filter(Boolean); - - let current = parent_node.selector; - for ( let i = 0 ; i < dirs.length ; i++ ) { - current = new NodeChildSelector(current, dirs[i]); - } - - const node = await fs.node(current); - - if ( ! await node.exists() ) { - throw APIError.create('dest_does_not_exist'); - } - - if ( ! node.entry.is_dir ) { - throw APIError.create('dest_is_not_a_directory'); - } - - return node; - } - /** * Creates a directory and all its ancestors. *