Quellcode durchsuchen

fix: comment out unused variable and related logic in SquidConfigManager

Manuel vor 8 Monaten
Ursprung
Commit
fa41f4429f
1 geänderte Dateien mit 5 neuen und 4 gelöschten Zeilen
  1. 5 4
      utils/admin.py

+ 5 - 4
utils/admin.py

@@ -632,7 +632,7 @@ class SquidConfigManager:
 
 
         try:
         try:
             pools_dict = {}  # Dictionary to group by pool number
             pools_dict = {}  # Dictionary to group by pool number
-            total_pools = 0
+            # total_pools = 0
             lines = config_to_parse.split("\n")
             lines = config_to_parse.split("\n")
 
 
             for line_num, line in enumerate(lines, 1):
             for line_num, line in enumerate(lines, 1):
@@ -640,9 +640,10 @@ class SquidConfigManager:
                     line = line.strip()
                     line = line.strip()
 
 
                     if line.startswith("delay_pools "):
                     if line.startswith("delay_pools "):
-                        parts = line.split()
-                        if len(parts) >= 2:
-                            total_pools = int(parts[1])
+                        pass
+                        # parts = line.split()
+                        # if len(parts) >= 2:
+                        # total_pools = int(parts[1])
 
 
                     elif line.startswith("delay_class "):
                     elif line.startswith("delay_class "):
                         parts = line.split()
                         parts = line.split()