Skip to content

Commit

Permalink
Reverting fe5cf16 - ArgumentNotNull() is not needed here - it is defi…
Browse files Browse the repository at this point in the history
…ned in the .tt files into which this file is included.
  • Loading branch information
lajones committed Jan 22, 2016
1 parent fe5cf16 commit 404d295
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 14 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -1492,14 +1492,6 @@ public class EdmMetadataLoader
private readonly IDynamicHost _host;
private readonly System.Collections.IList _errors;

public static void ArgumentNotNull<T>(T arg, string name) where T : class
{
if (arg == null)
{
throw new ArgumentNullException(name);
}
}

public EdmMetadataLoader(IDynamicHost host, System.Collections.IList errors)
{
ArgumentNotNull(host, "host");
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1434,12 +1434,6 @@ Public Class EdmMetadataLoader
Private ReadOnly _host As IDynamicHost
Private ReadOnly _errors As System.Collections.IList

Public Shared Sub ArgumentNotNull(Of T As Class)(arg As T, name As String)
If arg Is Nothing Then
Throw New ArgumentNullException(name)
End If
End Sub

Public Sub New(host As IDynamicHost, errors As System.Collections.IList)
ArgumentNotNull(host, "host")
ArgumentNotNull(errors, "errors")
Expand Down

0 comments on commit 404d295

Please sign in to comment.