]> git.smokeofanarchy.ru Git - space-station-14.git/commitdiff
Cleanup warnings: CS8321, CS0105, CS0168 (#36949)
authorB_Kirill <153602297+B-Kirill@users.noreply.github.com>
Thu, 8 May 2025 00:01:02 +0000 (10:01 +1000)
committerGitHub <noreply@github.com>
Thu, 8 May 2025 00:01:02 +0000 (20:01 -0400)
* Clean up

* CS0168

Content.Server/Entry/EntryPoint.cs
Content.Server/Explosion/EntitySystems/ExplosionSystem.Processing.cs
Content.Server/Polymorph/Systems/PolymorphSystem.cs

index 9d5cb0b10ea7b3d90194eff0db6e0e390928268c..f6d99ea687d5070684971daf55841ab5a3b77651 100644 (file)
@@ -217,6 +217,7 @@ namespace Content.Server.Entry
             Load(CCVars.ConfigPresetDebug, "debug");
 #endif
 
+#pragma warning disable CS8321
             void Load(CVarDef<bool> cVar, string name)
             {
                 var path = $"{ConfigPresetsDirBuild}{name}.toml";
@@ -226,6 +227,7 @@ namespace Content.Server.Entry
                     sawmill.Info("Loaded config preset: {Preset}", path);
                 }
             }
+#pragma warning restore CS8321
         }
     }
 }
index 3f2a0ea2dac90801b925c2292e94537290e4a26b..5909bd14ade07fe5421b1932231ce59d85b8db34 100644 (file)
@@ -146,7 +146,7 @@ public sealed partial class ExplosionSystem
             }
 #if EXCEPTION_TOLERANCE
             }
-            catch (Exception e)
+            catch (Exception)
             {
                 // Ensure the system does not get stuck in an error-loop.
                 if (_activeExplosion != null)
index b9d4afc88932da0c1967d4bba009e2460ab36688..64dbcec54707ec52123876e938fbe99925dcfaf8 100644 (file)
@@ -2,7 +2,6 @@ using Content.Server.Actions;
 using Content.Server.Humanoid;
 using Content.Server.Inventory;
 using Content.Server.Mind.Commands;
-using Content.Shared.Nutrition;
 using Content.Server.Polymorph.Components;
 using Content.Shared.Actions;
 using Content.Shared.Buckle;