@@ -29,7 +29,6 @@ public NormalizeUtils(IList<RDFDataset.Quad> quads, IDictionary<string, IDiction
2929 /// <exception cref="JsonLD.Core.JsonLdError"></exception>
3030 public virtual object HashBlankNodes ( IEnumerable < string > unnamed_ )
3131 {
32- #if ! PORTABLE
3332 IList < string > unnamed = new List < string > ( unnamed_ ) ;
3433 IList < string > nextUnnamed = new List < string > ( ) ;
3534 IDictionary < string , IList < string > > duplicates = new Dictionary < string , IList < string
@@ -203,9 +202,6 @@ public virtual object HashBlankNodes(IEnumerable<string> unnamed_)
203202 }
204203 }
205204 }
206- #else
207- throw new PlatformNotSupportedException ( ) ;
208- #endif
209205 }
210206
211207 private sealed class _IComparer_145 : IComparer < NormalizeUtils . HashResult >
@@ -245,7 +241,6 @@ private class HashResult
245241 /// <param name="callback">(err, result) called once the operation completes.</param>
246242 private static NormalizeUtils . HashResult HashPaths ( string id , IDictionary < string , IDictionary < string , object > > bnodes , UniqueNamer namer , UniqueNamer pathNamer )
247243 {
248- #if ! PORTABLE
249244 MessageDigest md = null ;
250245
251246 try
@@ -460,9 +455,6 @@ private static NormalizeUtils.HashResult HashPaths(string id, IDictionary<string
460455 {
461456 md ? . Dispose ( ) ;
462457 }
463- #else
464- throw new PlatformNotSupportedException ( ) ;
465- #endif
466458 }
467459
468460 /// <summary>Hashes all of the quads about a blank node.</summary>
@@ -500,7 +492,6 @@ private static string HashQuads(string id, IDictionary<string, IDictionary<strin
500492 /// <returns></returns>
501493 private static string Sha1hash ( ICollection < string > nquads )
502494 {
503- #if ! PORTABLE
504495 try
505496 {
506497 // create SHA-1 digest
@@ -515,9 +506,6 @@ private static string Sha1hash(ICollection<string> nquads)
515506 {
516507 throw ;
517508 }
518- #else
519- throw new PlatformNotSupportedException ( ) ;
520- #endif
521509 }
522510
523511 // TODO: this is something to optimize
0 commit comments