From 422413f45d762c2b43efb76ba1b5285c08305317 Mon Sep 17 00:00:00 2001 From: Yasen Pramatarov Date: Sat, 2 Nov 2024 17:43:00 +0200 Subject: [PATCH] Removes old unused code --- app/helpers/render.php | 9 +-------- 1 file changed, 1 insertion(+), 8 deletions(-) diff --git a/app/helpers/render.php b/app/helpers/render.php index cc4077c..1230b28 100644 --- a/app/helpers/render.php +++ b/app/helpers/render.php @@ -13,14 +13,7 @@ function renderConfig($configPart, $indent, $platform=false, $parent='') { if (is_array($config_value)) { // here we render recursively nested arrays $indent = $indent + 50; - if ($parent === 'platforms') { - $indent = 100; - } - if ($config_item === 'platforms') { - renderConfig($config_value, $indent, $platform, 'platforms'); - } else { - renderConfig($config_value, $indent, $platform); - } + renderConfig($config_value, $indent, $platform); $indent = 0; } else { // if it's not array, just display it