Skip to content

Commit

Permalink
remove unused namespaces and dead file
Browse files Browse the repository at this point in the history
  • Loading branch information
Cammin committed Sep 23, 2023
1 parent 4d59346 commit 64f3796
Show file tree
Hide file tree
Showing 27 changed files with 13 additions and 408 deletions.
3 changes: 1 addition & 2 deletions Assets/LDtkUnity/Editor/Builders/LDtkBuilderIntGridValue.cs
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
using System;
using System.Collections.Generic;
using System.Collections.Generic;
using UnityEngine;
using UnityEngine.Profiling;
using UnityEngine.Tilemaps;
Expand Down
3 changes: 1 addition & 2 deletions Assets/LDtkUnity/Editor/Builders/LDtkBuilderLayer.cs
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
using UnityEditor;
using UnityEngine;
using UnityEngine;
using UnityEngine.Tilemaps;

namespace LDtkUnity.Editor
Expand Down
Original file line number Diff line number Diff line change
@@ -1,11 +1,7 @@
using System.Collections.Generic;
using System.Diagnostics;
using System.Diagnostics;
using System.IO;
using System.Linq;
using System.Net;
using UnityEditor;
using UnityEngine;
using Debug = UnityEngine.Debug;

namespace LDtkUnity.Editor
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@
using System.Linq;
using UnityEditor;
using UnityEngine;
using UnityEngine.U2D;

namespace LDtkUnity.Editor
{
Expand Down
Original file line number Diff line number Diff line change
@@ -1,10 +1,8 @@
using System.Collections.Generic;
using System.Linq;
using UnityEditor;
using UnityEditor.U2D;
using UnityEngine;
using UnityEngine.Tilemaps;
using UnityEngine.U2D;

namespace LDtkUnity.Editor
{
Expand Down
3 changes: 1 addition & 2 deletions Assets/LDtkUnity/Editor/ExportNativePrefab/PathDrawer.cs
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
using System;
using System.IO;
using System.IO;
using UnityEditor;
using UnityEngine;

Expand Down
3 changes: 1 addition & 2 deletions Assets/LDtkUnity/Editor/ParsedField/Parsed/LDtkParsedTile.cs
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
using System;
using System.Collections.Generic;
using System.Collections.Generic;
using JetBrains.Annotations;
using UnityEngine;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@
using System.IO;
using System.Linq;
using System.Text.RegularExpressions;
using UnityEditor;
using UnityEngine;
using UnityEngine.Profiling;
using UnityEngine.Tilemaps;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
using UnityEditor;
using UnityEngine;

namespace LDtkUnity.Editor
{
Expand Down
Original file line number Diff line number Diff line change
@@ -1,14 +1,10 @@
using System;
using System.Collections.Generic;
using System.IO;
using System.Linq;
using System.Text.RegularExpressions;
using UnityEditor;
using UnityEngine;
using UnityEngine.Profiling;
using UnityEngine.Tilemaps;
using UnityEngine.U2D;
using Utf8Json;
using Object = UnityEngine.Object;
#if UNITY_2020_2_OR_NEWER
using UnityEditor.AssetImporters;
Expand Down
11 changes: 5 additions & 6 deletions Assets/LDtkUnity/Editor/ScriptedImporter/LDtkTilesetImporter.cs
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@
using System.Collections.Generic;
using System.IO;
using System.Linq;
using System.Reflection;
using System.Text;
using Unity.Collections;
using UnityEditor;
Expand All @@ -29,6 +28,8 @@ namespace LDtkUnity.Editor
[ScriptedImporter(LDtkImporterConsts.TILESET_VERSION, LDtkImporterConsts.TILESET_EXT, LDtkImporterConsts.TILESET_ORDER)]
internal sealed partial class LDtkTilesetImporter : LDtkJsonImporter<LDtkTilesetFile>
{
private static bool _willRefreshTilemapsInScene;

public const string PIXELS_PER_UNIT = nameof(_pixelsPerUnit);

[SerializeField] internal int _pixelsPerUnit = -1;
Expand Down Expand Up @@ -319,8 +320,6 @@ string MakeAssetName()

Debug.Assert(_additionalTiles.Count == additionalRects.Count);
}

public static bool WillRefreshTilemapsInScene;

private static void TilemapColliderTileUpdate()
{
Expand All @@ -330,16 +329,16 @@ private static void TilemapColliderTileUpdate()
//Using 2023.1+ is much more optimized for this sort of thing.
//This is unfortunately a slow procedure, but there is currently no easy solution found for refreshing tilemap colliders in the scene.

if (WillRefreshTilemapsInScene)
if (_willRefreshTilemapsInScene)
{
return;
}
WillRefreshTilemapsInScene = true;
_willRefreshTilemapsInScene = true;

EditorApplication.delayCall += () =>
{
Profiler.BeginSample("TilemapColliderTileUpdate");
WillRefreshTilemapsInScene = false;
_willRefreshTilemapsInScene = false;

#if UNITY_2023_1_OR_NEWER
TilemapCollider2D[] colliders = Object.FindObjectsByType<TilemapCollider2D>(FindObjectsInactive.Include, FindObjectsSortMode.None);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,6 @@
using System.Collections.Generic;
using System.Linq;
using UnityEditor;
using UnityEditor.AssetImporters;
using UnityEditor.U2D;
using UnityEditor.U2D.Sprites;
using UnityEngine;
using UnityEngine.Profiling;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
using UnityEngine;
#if UNITY_2020_2_OR_NEWER

#if UNITY_2020_2_OR_NEWER
using UnityEditor.AssetImporters;
#else
using UnityEditor.Experimental.AssetImporters;
#endif
Expand Down
Original file line number Diff line number Diff line change
@@ -1,11 +1,5 @@
using UnityEngine;

#if UNITY_2020_2_OR_NEWER
using UnityEditor.AssetImporters;
#else
using UnityEditor.Experimental.AssetImporters;
#endif

namespace LDtkUnity.Editor
{
internal sealed class LDtkBackgroundArtifactFactory : LDtkArtifactFactory
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,4 @@
using System;
using System.Collections.Generic;
using UnityEditor.AssetImporters;
using System.Collections.Generic;
using UnityEngine;
using UnityEngine.Profiling;

Expand Down
Loading

0 comments on commit 64f3796

Please sign in to comment.