Removed unused namepaces

* Removed unused namespaces across all files in Unity.Atoms assembly.
* Removed unused namspaces in runtime and Test assembly code.
This commit is contained in:
Jeff Campbell 2019-04-07 11:01:53 +02:00
parent e976823647
commit e5f6659eda
50 changed files with 24 additions and 109 deletions

View File

@ -1,7 +1,5 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Reflection;
#if UNITY_EDITOR
using UnityEditor;
#endif

View File

@ -1,4 +1,3 @@
using System;
using System.Collections;
using System.Collections.Generic;

View File

@ -1,5 +1,4 @@
using System.Collections;
using System.Collections.Generic;
using System.Collections.Generic;
using UnityEngine;
namespace UnityAtoms.UI

View File

@ -1,4 +1,3 @@
using System;
using UnityEngine;
namespace UnityAtoms

View File

@ -1,5 +1,3 @@
using System.Collections.Generic;
using UnityEngine;
using UnityEngine.Events;
using UnityAtoms.Utils;

View File

@ -1,5 +1,3 @@
using System.Collections.Generic;
using UnityEngine;
using UnityEngine.Events;
using UnityAtoms.Utils;

View File

@ -1,4 +1,3 @@
using System;
using System.Collections.Generic;
using UnityEngine;

View File

@ -1,5 +1,3 @@
using System;
using System.Collections.Generic;
using UnityEngine;
namespace UnityAtoms

View File

@ -1,6 +1,4 @@
using System;
using System.Collections.Generic;
using UnityEngine;
namespace UnityAtoms
{

View File

@ -1,4 +1,3 @@
using System;
using UnityEngine;
namespace UnityAtoms

View File

@ -1,5 +1,4 @@
using System;
using UnityEngine;
namespace UnityAtoms
{

View File

@ -1,5 +1,3 @@
using UnityEngine;
namespace UnityAtoms
{
public abstract class Collider2DEventAction : GameAction<Collider2DEvent> { }

View File

@ -1,5 +1,3 @@
using UnityEngine;
namespace UnityAtoms
{
public abstract class Collider2DListAction : GameAction<Collider2DList> { }

View File

@ -1,8 +1,4 @@
using System.Collections.Generic;
using UnityEngine;
using UnityEngine.Events;
using UnityAtoms.Utils;
namespace UnityAtoms
{

View File

@ -1,5 +1,3 @@
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
namespace UnityAtoms.Extensions

View File

@ -1,5 +1,3 @@
using System;
using System.Collections;
using System.Collections.Generic;
using UnityEngine;

View File

@ -1,5 +1,4 @@
using System;
using System.Collections;
using System.Collections.Generic;
using UnityEngine;

View File

@ -1,6 +1,5 @@
using System;
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
namespace UnityAtoms.Extensions

View File

@ -1,6 +1,5 @@
using UnityEngine;
using System;
using System.Collections;
namespace UnityAtoms.Extensions
{

View File

@ -1,5 +1,4 @@
using System;
using UnityEngine;
namespace UnityAtoms
{

View File

@ -1,5 +1,3 @@
using UnityEngine;
namespace UnityAtoms
{
public abstract class BoolBoolFunction : GameFunction<bool, bool> { }

View File

@ -1,5 +1,3 @@
using UnityEngine;
namespace UnityAtoms
{
public abstract class BoolFloatFunction : GameFunction<bool, float> { }

View File

@ -1,5 +1,3 @@
using UnityEngine;
namespace UnityAtoms
{
public abstract class BoolFunction : GameFunction<bool> { }

View File

@ -1,5 +1,3 @@
using UnityEngine;
namespace UnityAtoms
{
public abstract class BoolIntFunction : GameFunction<bool, int> { }

View File

@ -1,5 +1,3 @@
using UnityEngine;
namespace UnityAtoms
{
public abstract class BoolVoidFunction : GameFunction<bool, Void> { }

View File

@ -1,6 +1,4 @@
using UnityEngine;
namespace UnityAtoms
namespace UnityAtoms
{
public abstract class IntFunction : GameFunction<int> { }
}

View File

@ -1,5 +1,3 @@
using System;
using System.Collections.Generic;
using UnityEngine;
namespace UnityAtoms

View File

@ -1,5 +1,4 @@
using UnityEngine;
using UnityAtoms.Utils;
namespace UnityAtoms
{

View File

@ -1,4 +1,3 @@
using System;
using UnityEngine;
namespace UnityAtoms

View File

@ -1,6 +1,4 @@
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using UnityEngine;
using UnityAtoms.Extensions;
#if UNITY_EDITOR
using UnityAtoms.Logger;

View File

@ -1,5 +1,4 @@
using System;
using UnityEngine;
namespace UnityAtoms
{

View File

@ -1,6 +1,4 @@
using System;
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
namespace UnityAtoms.Mobile

View File

@ -1,5 +1,4 @@
using System;
using UnityEngine;
using UnityEngine.Events;
namespace UnityAtoms.Mobile

View File

@ -1,5 +1,4 @@
using UnityEngine;
using UnityEngine.Events;
namespace UnityAtoms
{

View File

@ -1,6 +1,4 @@
using UnityEngine;
namespace UnityAtoms
namespace UnityAtoms
{
public class OnDestroyHook : VoidHook
{

View File

@ -1,5 +1,3 @@
using UnityEngine;
namespace UnityAtoms
{
public class OnFixedUpdateHook : VoidHook

View File

@ -1,5 +1,3 @@
using UnityEngine;
namespace UnityAtoms
{
public class OnLateUpdateHook : VoidHook

View File

@ -1,4 +1,3 @@
using UnityEngine;
using UnityEngine.EventSystems;
namespace UnityAtoms

View File

@ -1,5 +1,3 @@
using UnityEngine;
namespace UnityAtoms
{
public class OnStartHook : VoidHook

View File

@ -1,5 +1,3 @@
using UnityEngine;
namespace UnityAtoms
{
public class OnUpdateHook : VoidHook

View File

@ -1,5 +1,3 @@
using UnityEngine;
namespace UnityAtoms
{
public abstract class VoidHook : MonoHook<VoidEvent, VoidGameObjectEvent, Void, GameObjectGameObjectFunction> { }

View File

@ -1,7 +1,4 @@
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using UnityAtoms;
using UnityAtoms;
public class CreateStringVariableOnAwake : CreateVariableOnAwake<string, StringVariable, StringEvent, StringStringEvent,
StringListener, StringStringListener, StringAction, StringStringAction,
StringVariableAction, StringVariableGameObjectAction, UnityStringEvent, UnityStringStringEvent>

View File

@ -1,5 +1,3 @@
using UnityEngine;
namespace UnityAtoms
{
public class StringListener : GameEventListener<string, StringAction, StringEvent, UnityStringEvent> { }

View File

@ -1,5 +1,4 @@
using System;
using UnityEngine;
namespace UnityAtoms
{

View File

@ -1,5 +1,3 @@
using UnityEngine;
namespace UnityAtoms
{
public class StringStringListener : GameEventListener<string, string, StringStringAction, StringStringEvent, UnityStringStringEvent> { }

View File

@ -1,5 +1,3 @@
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
namespace UnityAtoms.Utils

View File

@ -1,5 +1,3 @@
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using UnityAtoms.Extensions;

View File

@ -1,5 +1,4 @@
using UnityEngine;
using UnityAtoms;
namespace UnityAtoms.Examples
{
@ -7,4 +6,4 @@ namespace UnityAtoms.Examples
{
public IntVariable Health;
}
}
}

View File

@ -1,20 +1,18 @@
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
public class PlayerMove : MonoBehaviour
{
float horizontal = 0f;
float vertical = 0f;
void Update()
{
horizontal = Input.GetAxis("Horizontal");
vertical = Input.GetAxis("Vertical");
}
void FixedUpdate()
{
GetComponent<Rigidbody2D>().velocity = new Vector2(horizontal, vertical) * 5f;
}
}
using UnityEngine;
public class PlayerMove : MonoBehaviour
{
float horizontal = 0f;
float vertical = 0f;
void Update()
{
horizontal = Input.GetAxis("Horizontal");
vertical = Input.GetAxis("Vertical");
}
void FixedUpdate()
{
GetComponent<Rigidbody2D>().velocity = new Vector2(horizontal, vertical) * 5f;
}
}

View File

@ -1,9 +1,7 @@
using System.Collections;
using System.Reflection;
using NUnit.Framework;
using UnityAtoms;
using UnityEngine;
using UnityEngine.TestTools;
namespace Tests
{