Skip to content

Commit

Permalink
Misc cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
mtschoen-unity committed May 30, 2022
1 parent aa736bf commit 4a83b08
Showing 1 changed file with 4 additions and 10 deletions.
14 changes: 4 additions & 10 deletions Editor/SolidColorTextures.cs
Original file line number Diff line number Diff line change
Expand Up @@ -174,7 +174,7 @@ void ShrinkAndFinalize()
/// </summary>
void ShrinkAllTexturesRecursively()
{
foreach (var (path, _) in m_Textures)
foreach (var (path, _) in m_Textures)
{
var importer = AssetImporter.GetAtPath(path);
if (importer == null)
Expand Down Expand Up @@ -238,7 +238,7 @@ static class Styles
normal = new GUIStyleState
{
#if UNITY_2019_4_OR_NEWER
background = Texture2D.grayTexture
background = Texture2D.grayTexture
#else
background = Texture2D.whiteTexture
#endif
Expand Down Expand Up @@ -281,10 +281,7 @@ static class Styles
/// Initialize the window
/// </summary>
[MenuItem(k_MenuItemName)]
static void Init()
{
GetWindow<SolidColorTextures>(k_WindowTitle).Show();
}
static void Init() { GetWindow<SolidColorTextures>(k_WindowTitle).Show(); }

void OnEnable()
{
Expand All @@ -293,10 +290,7 @@ void OnEnable()
m_ScanProgress = 0;
}

void OnDisable()
{
m_ScanEnumerator = null;
}
void OnDisable() { m_ScanEnumerator = null; }

void OnGUI()
{
Expand Down

0 comments on commit 4a83b08

Please sign in to comment.