Browse Source

Cleaning files

Sebastien Ros 12 years ago
parent
commit
8762834853
2 changed files with 4 additions and 12 deletions
  1. 4 5
      Jint.Tests.Ecma/EcmaTest.cs
  2. 0 7
      Jint/Runtime/References/Reference.cs

+ 4 - 5
Jint.Tests.Ecma/EcmaTest.cs

@@ -1,7 +1,6 @@
 using System;
 using System.IO;
 using System.Reflection;
-using Jint.Runtime;
 using Xunit;
 
 namespace Jint.Tests.Ecma
@@ -10,14 +9,14 @@ namespace Jint.Tests.Ecma
     {
         private static string _lastError;
         protected Action<string> Error = s => { _lastError = s; };
-        protected string basePath;
+        protected string BasePath;
 
         public EcmaTest()
         {
             var assemblyPath = new Uri(Assembly.GetExecutingAssembly().CodeBase).LocalPath;
             var assemblyDirectory = new FileInfo(assemblyPath).Directory;
 
-            basePath = assemblyDirectory.Parent.Parent.FullName;
+            BasePath = assemblyDirectory.Parent.Parent.FullName;
 
         }
 
@@ -50,7 +49,7 @@ namespace Jint.Tests.Ecma
                 }
                 catch
                 {
-                    
+                    // exception is expected
                 }
                 
             }
@@ -63,7 +62,7 @@ namespace Jint.Tests.Ecma
 
         protected void RunTest(string sourceFilename, bool negative)
         {
-            var fullName = Path.Combine(basePath, sourceFilename);
+            var fullName = Path.Combine(BasePath, sourceFilename);
             if (!File.Exists(fullName))
             {
                 throw new ArgumentException("Could not find source file: " + fullName);

+ 0 - 7
Jint/Runtime/References/Reference.cs

@@ -1,10 +1,6 @@
 using System;
 using Jint.Native;
-using Jint.Native.Boolean;
-using Jint.Native.Number;
 using Jint.Native.Object;
-using Jint.Native.String;
-using Jint.Runtime.Environments;
 
 namespace Jint.Runtime.References
 {
@@ -18,15 +14,12 @@ namespace Jint.Runtime.References
         private readonly object _baseValue;
         private readonly string _name;
         private readonly bool _strict;
-        private readonly EnvironmentRecord _record;
 
         public Reference(object baseValue, string name, bool strict)
         {
             _baseValue = baseValue;
             _name = name;
             _strict = strict;
-
-            _record = baseValue as EnvironmentRecord;
         }
 
         public object GetBase()