Skip to content
This repository has been archived by the owner on Jun 26, 2021. It is now read-only.

Commit

Permalink
Updated Imports
Browse files Browse the repository at this point in the history
- Outcommented unused using directives
- Added "Imports" Regions in the Scripts for better overview
  • Loading branch information
FritzsHero committed Jul 10, 2019
1 parent 600ba8f commit 81534e1
Show file tree
Hide file tree
Showing 27 changed files with 64 additions and 50 deletions.
2 changes: 2 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,11 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0

### Changed
- Changed links, which redirected to Github, with the Github Wiki Link of the Master. Closed embeddedt/RoadArchitect/issues/6
- Outcommented unused using directives

### Added
- Added missing private attribute on some Vars and Functions
- Added "Imports" Regions in the Scripts for better overview

### Fixed
-
Expand Down
4 changes: 2 additions & 2 deletions Editor/GSDNotification.cs
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
#region Imports
#region "Imports"
using UnityEngine;
using UnityEditor;
using System.Collections;
//using System.Collections; // Unused
#endregion


Expand Down
2 changes: 1 addition & 1 deletion Editor/GSDRoadEditor.cs
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
#region "Imports"
using UnityEngine;
using UnityEditor;
using System.Collections;
using GSD.Roads;
using GSD;
//using System.Collections; // Unused
#endregion


Expand Down
2 changes: 1 addition & 1 deletion Editor/GSDRoadIntersectionEditor.cs
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
#region "Imports"
using UnityEngine;
using UnityEditor;
using System.Collections.Generic;
using GSD;
//using System.Collections.Generic; // Unused
#endregion


Expand Down
6 changes: 3 additions & 3 deletions Editor/GSDRoadSystemEditor.cs
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
#region Imports
#region "Imports"
using UnityEngine;
using UnityEditor;
using System.Collections.Generic;
using GSD;
//using System.Collections.Generic; // Unused
//using GSD; // Unused
#endregion


Expand Down
4 changes: 2 additions & 2 deletions Editor/GSDSaveWindow.cs
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
#region "Imports"
using UnityEngine;
using UnityEditor;
using System.Collections;
using System.Collections.Generic;
using System.Text.RegularExpressions;
using GSD;
//using System.Collections; // Unused
//using System.Collections.Generic; // Unused
#endregion


Expand Down
2 changes: 1 addition & 1 deletion Editor/GSDSplineFEditor.cs
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#region "Imports"
using UnityEngine;
//using UnityEngine; // Unused
using UnityEditor;
#endregion

Expand Down
2 changes: 1 addition & 1 deletion Editor/GSDSplineIEditor.cs
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#region "Imports"
using UnityEngine;
//using UnityEngine; // Unused
using UnityEditor;
#endregion

Expand Down
2 changes: 1 addition & 1 deletion Editor/GSDSplineNEditor.cs
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
#region "Imports"
using UnityEngine;
using UnityEditor;
using System.Collections;
using System.Collections.Generic;
using GSD;
//using System.Collections; // Unused
#endregion


Expand Down
2 changes: 1 addition & 1 deletion Editor/GSDTerrainEditor.cs
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
#region "Imports"
using UnityEngine;
using UnityEditor;
using GSD;
//using GSD; // Unused
#endregion


Expand Down
2 changes: 1 addition & 1 deletion Editor/GSDWizard.cs
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
#region "Imports"
using UnityEngine;
using UnityEditor;
using System.Collections;
using System.Collections.Generic;
using GSD.Roads.Splination;
using GSD.Roads.EdgeObjects;
using GSD;
using System.IO;
using GSD.Roads;
//using System.Collections; // Unused
#endregion


Expand Down
6 changes: 4 additions & 2 deletions GSDOffRoadObject.cs
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
using System.Collections;
using System.Collections.Generic;
#region "Imports"
//using System.Collections; // Unused
//using System.Collections.Generic; // Unused
using UnityEngine;
#endregion


public class GSDOffRoadObject : MonoBehaviour
Expand Down
2 changes: 2 additions & 0 deletions GSDRigidBody.cs
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
#region "Imports"
using UnityEngine;
#endregion


public class GSDRigidBody : MonoBehaviour
Expand Down
4 changes: 2 additions & 2 deletions GSDRoad.cs
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#region Imports
#region "Imports"
//using System.Collections; // Unused
using UnityEngine;
using System.Collections;
using System.Collections.Generic;
using GSD.Roads;
using GSD;
Expand Down
12 changes: 6 additions & 6 deletions GSDRoadAutomation.cs
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
#region Imports
#region "Imports"
using UnityEngine;
#if UNITY_EDITOR
using System.Collections.Generic;
using System.Collections;
using System.IO;
using System.Text;
using System.Runtime.Serialization.Formatters.Binary;
using System.Runtime.Serialization;
//using System.Collections; // Unused
//using System.IO; // Unused
//using System.Text; // Unused
//using System.Runtime.Serialization.Formatters.Binary; // Unused
//using System.Runtime.Serialization; // Unused
#endif
#endregion

Expand Down
6 changes: 3 additions & 3 deletions GSDRoadConnector.cs
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#region Imports
using System.Collections;
using System.Collections.Generic;
#region "Imports"
//using System.Collections; // Unused
//using System.Collections.Generic; // Unused
using UnityEngine;
#if UNITY_EDITOR
using UnityEditor;
Expand Down
4 changes: 2 additions & 2 deletions GSDRoadEdgeObjects.cs
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
#region "Imports"
using UnityEngine;
#if UNITY_EDITOR
using System.Collections;
//using System.Collections; // Unused
//using GSD; // Unused
using System.Collections.Generic;
using GSD;
using System.IO;
#endif
#endregion
Expand Down
4 changes: 2 additions & 2 deletions GSDRoadMeshSplinate.cs
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
#region "Imports"
using UnityEngine;
#if UNITY_EDITOR
using System.Collections;
//using System.Collections; // Unused
//using GSD; // Unused
using System.Collections.Generic;
using GSD;
using System.IO;
#endif
#endregion
Expand Down
6 changes: 3 additions & 3 deletions GSDRoadSystem.cs
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
#region "Imports"
using UnityEngine;
#if UNITY_EDITOR
using System.Collections;
#endif
//#if UNITY_EDITOR
//using System.Collections; // Unused
//#endif
#endregion


Expand Down
4 changes: 3 additions & 1 deletion GSDRoadUtility.cs
Original file line number Diff line number Diff line change
@@ -1,12 +1,14 @@
#region "Imports"
using UnityEngine;
#if UNITY_EDITOR
using System.Collections.Generic;
using System.Collections;
//using System.Collections; // Unused
using System.IO;
using System.Text;
using System.Runtime.Serialization.Formatters.Binary;
using System.Runtime.Serialization;
#endif
#endregion


// TODO: Remove // comments with /**/ // FH 29.01.19
Expand Down
4 changes: 2 additions & 2 deletions GSDRoadUtilityT.cs
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
#region "Imports"
using UnityEngine;
#if UNITY_EDITOR
using System.Collections;
//using System.Collections; // Unused
//using GSD; // Unused
using System.Collections.Generic;
using GSD;
#endif
#endregion

Expand Down
2 changes: 1 addition & 1 deletion GSDRootUtil.cs
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#region "Imports"
using UnityEngine;
using System.Collections;
//using System.Collections; // Unused
using System.Xml;
using System.Xml.Serialization;
using System.IO;
Expand Down
2 changes: 2 additions & 0 deletions GSDTerrain.cs
Original file line number Diff line number Diff line change
@@ -1,7 +1,9 @@
#region "Imports"
using UnityEngine;
#if UNITY_EDITOR
using System.Collections.Generic;
#endif
#endregion


[ExecuteInEditMode]
Expand Down
4 changes: 3 additions & 1 deletion GSDTrafficLightController.cs
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
#region "Imports"
using UnityEngine;
using System.Collections;
//using System.Collections; // Unused
#endregion


[System.Serializable]
Expand Down
14 changes: 8 additions & 6 deletions GSDUnitTests.cs
Original file line number Diff line number Diff line change
@@ -1,12 +1,14 @@
using UnityEngine;
#region "Imports"
using UnityEngine;
#if UNITY_EDITOR
using System.Collections.Generic;
using System.Collections;
using System.IO;
using System.Text;
using System.Runtime.Serialization.Formatters.Binary;
using System.Runtime.Serialization;
//using System.Collections; // Unused
//using System.IO; // Unused
//using System.Text; // Unused
//using System.Runtime.Serialization.Formatters.Binary; // Unused
//using System.Runtime.Serialization; // Unused
#endif
#endregion


namespace GSD.Roads
Expand Down
4 changes: 2 additions & 2 deletions Spline/GSDSplineN.cs
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#region Imports
#region "Imports"
//using System.Collections; // Unused
using UnityEngine;
using System.Collections;
using System.Collections.Generic;
using GSD.Roads.Splination;
using GSD.Roads.EdgeObjects;
Expand Down
6 changes: 3 additions & 3 deletions Spline/GSDSplineRepair.cs
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#region Imports
using System.Collections;
using System.Collections.Generic;
#region "Imports"
//using System.Collections; // Unused
//using System.Collections.Generic; // Unused
using UnityEngine;
using UnityEditor;
#endregion
Expand Down

0 comments on commit 81534e1

Please sign in to comment.