From 67c25c8d9af560f71f444d3bf53d01366932a8bb Mon Sep 17 00:00:00 2001 From: MilenVolf Date: Wed, 27 Nov 2024 18:03:00 +0300 Subject: [PATCH] Remove unused obsolete TileAccess methods --- .../Map/Components/MapGridComponent.cs | 67 ------------------- 1 file changed, 67 deletions(-) diff --git a/Robust.Shared/Map/Components/MapGridComponent.cs b/Robust.Shared/Map/Components/MapGridComponent.cs index e4a646faf39..c6d477d941d 100644 --- a/Robust.Shared/Map/Components/MapGridComponent.cs +++ b/Robust.Shared/Map/Components/MapGridComponent.cs @@ -73,73 +73,6 @@ public sealed partial class MapGridComponent : Component [ViewVariables(VVAccess.ReadWrite), DataField("canSplit")] public bool CanSplit = true; - #region TileAccess - - [Obsolete("Use the MapSystem method")] - public TileRef GetTileRef(EntityCoordinates coords) - { - return MapSystem.GetTileRef(Owner, this, coords); - } - - [Obsolete("Use the MapSystem method")] - public TileRef GetTileRef(Vector2i tileCoordinates) - { - return MapSystem.GetTileRef(Owner, this, tileCoordinates); - } - - [Obsolete("Use the MapSystem method")] - public IEnumerable GetAllTiles(bool ignoreEmpty = true) - { - return MapSystem.GetAllTiles(Owner, this, ignoreEmpty); - } - - [Obsolete("Use the MapSystem method")] - public GridTileEnumerator GetAllTilesEnumerator(bool ignoreEmpty = true) - { - return MapSystem.GetAllTilesEnumerator(Owner, this, ignoreEmpty); - } - - [Obsolete("Use the MapSystem method")] - public void SetTile(EntityCoordinates coords, Tile tile) - { - MapSystem.SetTile(Owner, this, coords, tile); - } - - [Obsolete("Use the MapSystem method")] - public void SetTile(Vector2i gridIndices, Tile tile) - { - MapSystem.SetTile(Owner, this, gridIndices, tile); - } - - [Obsolete("Use the MapSystem method")] - public void SetTiles(List<(Vector2i GridIndices, Tile Tile)> tiles) - { - MapSystem.SetTiles(Owner, this, tiles); - } - - [Obsolete("Use the MapSystem method")] - public IEnumerable GetTilesIntersecting(Box2 worldArea, bool ignoreEmpty = true, - Predicate? predicate = null) - { - return MapSystem.GetTilesIntersecting(Owner, this, worldArea, ignoreEmpty, predicate); - } - - [Obsolete("Use the MapSystem method")] - public IEnumerable GetLocalTilesIntersecting(Box2 localArea, bool ignoreEmpty = true, - Predicate? predicate = null) - { - return MapSystem.GetLocalTilesIntersecting(Owner, this, localArea, ignoreEmpty, predicate); - } - - [Obsolete("Use the MapSystem method")] - public IEnumerable GetTilesIntersecting(Circle worldArea, bool ignoreEmpty = true, - Predicate? predicate = null) - { - return MapSystem.GetTilesIntersecting(Owner, this, worldArea, ignoreEmpty, predicate); - } - - #endregion TileAccess - #region ChunkAccess [Obsolete("Use the MapSystem method")]