From 155d0a403307bc95a2753ffe47699a8449de22cc Mon Sep 17 00:00:00 2001 From: Kevin Gadd Date: Tue, 27 Mar 2012 09:49:33 -0700 Subject: [PATCH] Remove unnecessary 'new' keywords on some proxies --- Proxies/Array.cs | 2 +- Proxies/Console.cs | 4 ++-- Proxies/Enum.cs | 2 +- Proxies/Numbers.cs | 10 +++++----- 4 files changed, 9 insertions(+), 9 deletions(-) diff --git a/Proxies/Array.cs b/Proxies/Array.cs index 2f17b7ea8..7511b3be5 100644 --- a/Proxies/Array.cs +++ b/Proxies/Array.cs @@ -67,7 +67,7 @@ public static int IndexOf (T[] array, T value, int startIndex) { } [JSReplacement("Array.prototype.slice.call($this)")] - new public object Clone () { + public object Clone () { throw new InvalidOperationException(); } } diff --git a/Proxies/Console.cs b/Proxies/Console.cs index a4737dc36..c5aa650a7 100644 --- a/Proxies/Console.cs +++ b/Proxies/Console.cs @@ -12,7 +12,7 @@ public abstract class ConsoleProxy { [JSExternal] [JSMutatedArguments()] [JSEscapingArguments()] - new public static void WriteLine (params AnyType[] arguments) { + public static void WriteLine (params AnyType[] arguments) { throw new InvalidOperationException(); } @@ -20,7 +20,7 @@ public abstract class ConsoleProxy { [JSExternal] [JSMutatedArguments()] [JSEscapingArguments()] - new public static void Write (params AnyType[] arguments) { + public static void Write (params AnyType[] arguments) { throw new InvalidOperationException(); } } diff --git a/Proxies/Enum.cs b/Proxies/Enum.cs index 0f7385090..0209756ee 100644 --- a/Proxies/Enum.cs +++ b/Proxies/Enum.cs @@ -10,7 +10,7 @@ namespace JSIL.Proxies { public abstract class EnumProxy { [JSRuntimeDispatch] [JSExternal] - new public static AnyType Parse (params AnyType[] arguments) { + public static AnyType Parse (params AnyType[] arguments) { throw new InvalidOperationException(); } } diff --git a/Proxies/Numbers.cs b/Proxies/Numbers.cs index 1a8315595..397509b3e 100644 --- a/Proxies/Numbers.cs +++ b/Proxies/Numbers.cs @@ -13,7 +13,7 @@ namespace JSIL.Proxies { public abstract class IntegerProxy { [JSRuntimeDispatch] [JSExternal] - new public static AnyType Parse (params AnyType[] arguments) { + public static AnyType Parse (params AnyType[] arguments) { throw new InvalidOperationException(); } @@ -23,7 +23,7 @@ public string ToString (params AnyType[] arguments) { } [JSReplacement("JSIL.CompareNumbers($this, $rhs)")] - new public int CompareTo (AnyType rhs) { + public int CompareTo (AnyType rhs) { throw new InvalidOperationException(); } } @@ -37,7 +37,7 @@ public string ToString (params AnyType[] arguments) { public abstract class NumberProxy { [JSRuntimeDispatch] [JSExternal] - new public static AnyType Parse (params AnyType[] arguments) { + public static AnyType Parse (params AnyType[] arguments) { throw new InvalidOperationException(); } @@ -47,7 +47,7 @@ public string ToString (params AnyType[] arguments) { } [JSReplacement("JSIL.CompareNumbers($this, $rhs)")] - new public int CompareTo (AnyType rhs) { + public int CompareTo (AnyType rhs) { throw new InvalidOperationException(); } } @@ -59,7 +59,7 @@ public string ToString (params AnyType[] arguments) { public abstract class DecimalProxy { [JSRuntimeDispatch] [JSExternal] - new public static Decimal op_Explicit (params AnyType[] arguments) { + public static Decimal op_Explicit (params AnyType[] arguments) { throw new InvalidOperationException(); } }