From: B_Kirill <153602297+B-Kirill@users.noreply.github.com> Date: Thu, 8 May 2025 00:01:02 +0000 (+1000) Subject: Cleanup warnings: CS8321, CS0105, CS0168 (#36949) X-Git-Url: https://git.smokeofanarchy.ru/gitweb.cgi?a=commitdiff_plain;h=b3c4c7c32b99d518cdad7e7009d5fb9fc8421b8d;p=space-station-14.git Cleanup warnings: CS8321, CS0105, CS0168 (#36949) * Clean up * CS0168 --- diff --git a/Content.Server/Entry/EntryPoint.cs b/Content.Server/Entry/EntryPoint.cs index 9d5cb0b10e..f6d99ea687 100644 --- a/Content.Server/Entry/EntryPoint.cs +++ b/Content.Server/Entry/EntryPoint.cs @@ -217,6 +217,7 @@ namespace Content.Server.Entry Load(CCVars.ConfigPresetDebug, "debug"); #endif +#pragma warning disable CS8321 void Load(CVarDef 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 } } } diff --git a/Content.Server/Explosion/EntitySystems/ExplosionSystem.Processing.cs b/Content.Server/Explosion/EntitySystems/ExplosionSystem.Processing.cs index 3f2a0ea2da..5909bd14ad 100644 --- a/Content.Server/Explosion/EntitySystems/ExplosionSystem.Processing.cs +++ b/Content.Server/Explosion/EntitySystems/ExplosionSystem.Processing.cs @@ -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) diff --git a/Content.Server/Polymorph/Systems/PolymorphSystem.cs b/Content.Server/Polymorph/Systems/PolymorphSystem.cs index b9d4afc889..64dbcec547 100644 --- a/Content.Server/Polymorph/Systems/PolymorphSystem.cs +++ b/Content.Server/Polymorph/Systems/PolymorphSystem.cs @@ -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;