Skip to content

Commit e10800b

Browse files
committed
Remove dead exception generic constructor
1 parent 2e28d77 commit e10800b

File tree

1 file changed

+0
-7
lines changed

1 file changed

+0
-7
lines changed

src/CouchDB.Driver/Helpers/RequestsHelper.cs

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -43,12 +43,5 @@ public static async Task<T> SendRequestAsync<T>(this Task<T> asyncRequest)
4343
}
4444
}
4545
}
46-
47-
private static Exception NewCouchExteption(this CouchError e, Type type)
48-
{
49-
ConstructorInfo ctor = type.GetConstructor(new[] { typeof(string), typeof(string) });
50-
var exception = (CouchException)ctor.Invoke(new string[] { e.Error, e.Reason });
51-
return exception;
52-
}
5346
}
5447
}

0 commit comments

Comments
 (0)