Skip to content

Commit

Permalink
Remove unnecessary 'new' keywords on some proxies
Browse files Browse the repository at this point in the history
  • Loading branch information
kg committed Mar 27, 2012
1 parent 9af36b6 commit 155d0a4
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 9 deletions.
2 changes: 1 addition & 1 deletion Proxies/Array.cs
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ public static int IndexOf<T> (T[] array, T value, int startIndex) {
}

[JSReplacement("Array.prototype.slice.call($this)")]
new public object Clone () {
public object Clone () {
throw new InvalidOperationException();
}
}
Expand Down
4 changes: 2 additions & 2 deletions Proxies/Console.cs
Original file line number Diff line number Diff line change
Expand Up @@ -12,15 +12,15 @@ 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();
}

[JSRuntimeDispatch]
[JSExternal]
[JSMutatedArguments()]
[JSEscapingArguments()]
new public static void Write (params AnyType[] arguments) {
public static void Write (params AnyType[] arguments) {
throw new InvalidOperationException();
}
}
Expand Down
2 changes: 1 addition & 1 deletion Proxies/Enum.cs
Original file line number Diff line number Diff line change
Expand Up @@ -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();
}
}
Expand Down
10 changes: 5 additions & 5 deletions Proxies/Numbers.cs
Original file line number Diff line number Diff line change
Expand Up @@ -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();
}

Expand All @@ -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();
}
}
Expand All @@ -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();
}

Expand All @@ -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();
}
}
Expand All @@ -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();
}
}
Expand Down

0 comments on commit 155d0a4

Please sign in to comment.