From 717ecfa1e5cc0864e0bfaba47c3a2468ace94657 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C3=9Eorgeir?= Date: Sun, 10 Apr 2016 18:58:07 +0000 Subject: [PATCH] Small refactorings. --- .../Assets/Editor/RexDiagnostics/Core/RexHelper.cs | 2 -- .../Assets/Editor/RexDiagnostics/Core/RexReflectionHelper.cs | 4 ++-- .../Assets/Editor/RexDiagnostics/Core/RexUtils.cs | 4 ---- 3 files changed, 2 insertions(+), 8 deletions(-) diff --git a/RexWindowProjcet/Assets/Editor/RexDiagnostics/Core/RexHelper.cs b/RexWindowProjcet/Assets/Editor/RexDiagnostics/Core/RexHelper.cs index a027c7d..b361970 100644 --- a/RexWindowProjcet/Assets/Editor/RexDiagnostics/Core/RexHelper.cs +++ b/RexWindowProjcet/Assets/Editor/RexDiagnostics/Core/RexHelper.cs @@ -2,9 +2,7 @@ using System.Collections.Generic; using System.Linq; using System.CodeDom.Compiler; -using System.Collections; using Rex.Utilities.Helpers; -using System.Diagnostics; using UnityEditor; using Rex.Window; using System.Reflection; diff --git a/RexWindowProjcet/Assets/Editor/RexDiagnostics/Core/RexReflectionHelper.cs b/RexWindowProjcet/Assets/Editor/RexDiagnostics/Core/RexReflectionHelper.cs index b7af453..e2166b4 100644 --- a/RexWindowProjcet/Assets/Editor/RexDiagnostics/Core/RexReflectionHelper.cs +++ b/RexWindowProjcet/Assets/Editor/RexDiagnostics/Core/RexReflectionHelper.cs @@ -236,9 +236,9 @@ public static IEnumerable GetSyntaxForValue(object value) var constVal = value.ToString(); var enumerableItems = ""; - if (!RexReflectionUtils.IsOverridingToStirng(type) && + if (!IsOverridingToStirng(type) && value is IEnumerable && - RexReflectionUtils.ExtractValue(value, out enumerableItems)) + ExtractValue(value, out enumerableItems)) { return RexUtils.GetCSharpRepresentation(type).Concat(new[] { diff --git a/RexWindowProjcet/Assets/Editor/RexDiagnostics/Core/RexUtils.cs b/RexWindowProjcet/Assets/Editor/RexDiagnostics/Core/RexUtils.cs index d9b2fdd..017ed6f 100644 --- a/RexWindowProjcet/Assets/Editor/RexDiagnostics/Core/RexUtils.cs +++ b/RexWindowProjcet/Assets/Editor/RexDiagnostics/Core/RexUtils.cs @@ -1,14 +1,10 @@ using Rex.Utilities.Helpers; -using Microsoft.CSharp; using System; -using System.CodeDom.Compiler; using System.Collections.Generic; using System.Linq; using System.Reflection; -using System.Text.RegularExpressions; using System.Text; using System.Runtime.CompilerServices; -using UnityEngine; using UnityEditor; namespace Rex.Utilities