]> git.smokeofanarchy.ru Git - space-station-14.git/commitdiff
Gets rid of obsolete EntityWhitelist.IsValid() function (#28565)
authorPlykiya <58439124+Plykiya@users.noreply.github.com>
Mon, 3 Jun 2024 22:42:50 +0000 (15:42 -0700)
committerGitHub <noreply@github.com>
Mon, 3 Jun 2024 22:42:50 +0000 (18:42 -0400)
Gets rid of obsolete IsValid function

Co-authored-by: plykiya <plykiya@protonmail.com>
Content.Shared/Whitelist/EntityWhitelist.cs

index 895759be9582d0ac2eaaa34eed45d7e63aaf8c1c..3e4e2fecb2e576dba0ae6ad1d744d3fa65b08a9b 100644 (file)
@@ -54,14 +54,4 @@ public sealed partial class EntityWhitelist
     /// </summary>
     [DataField]
     public bool RequireAll;
-
-    [Obsolete("Use WhitelistSystem")]
-    public bool IsValid(EntityUid uid, IEntityManager? man = null)
-    {
-        var sys = man?.System<EntityWhitelistSystem>() ??
-                  IoCManager.Resolve<IEntitySystemManager>().GetEntitySystem<EntityWhitelistSystem>();
-
-        return sys.IsValid(this, uid);
-
-    }
 }