Skip to content

Commit af60610

Browse files
committed
Removes line spaces that were added
1 parent 743598f commit af60610

File tree

3 files changed

+0
-20
lines changed

3 files changed

+0
-20
lines changed

src/json-ld.net/Core/JsonLdApi.cs

Lines changed: 0 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -122,9 +122,7 @@ public virtual JToken Compact(Context activeCtx, string activeProperty, JToken e
122122
JObject result = new JObject();
123123
// 7)
124124
JArray keys = new JArray(element.GetKeys());
125-
126125
keys.SortInPlace();
127-
128126
foreach (string expandedProperty in keys)
129127
{
130128
JToken expandedValue = elem[expandedProperty];
@@ -492,9 +490,7 @@ public virtual JToken Expand(Context activeCtx, string activeProperty, JToken el
492490
JObject result = new JObject();
493491
// 7)
494492
JArray keys = new JArray(element.GetKeys());
495-
496493
keys.SortInPlace();
497-
498494
foreach (string key in keys)
499495
{
500496
JToken value = elem[key];
@@ -811,9 +807,7 @@ public virtual JToken Expand(Context activeCtx, string activeProperty, JToken el
811807
expandedValue = new JArray();
812808
// 7.6.2)
813809
JArray indexKeys = new JArray(value.GetKeys());
814-
815810
indexKeys.SortInPlace();
816-
817811
foreach (string index in indexKeys)
818812
{
819813
JToken indexValue = ((JObject)value)[index];
@@ -1295,9 +1289,7 @@ private void GenerateNodeMap(JToken element, JObject nodeMap,
12951289
}
12961290
// 6.11)
12971291
JArray keys = new JArray(element.GetKeys());
1298-
12991292
keys.SortInPlace();
1300-
13011293
foreach (string property_1 in keys)
13021294
{
13031295
var eachProperty_1 = property_1;
@@ -1443,9 +1435,7 @@ private void Frame(JsonLdApi.FramingContext state, JObject nodes
14431435
bool explicitOn = GetFrameFlag(frame, "@explicit", state.@explicit);
14441436
// add matches to output
14451437
JArray ids = new JArray(matches.GetKeys());
1446-
14471438
ids.SortInPlace();
1448-
14491439
foreach (string id in ids)
14501440
{
14511441
if (property == null)
@@ -1508,9 +1498,7 @@ private void Frame(JsonLdApi.FramingContext state, JObject nodes
15081498
// iterate over subject properties
15091499
JObject element = (JObject)matches[id];
15101500
JArray props = new JArray(element.GetKeys());
1511-
15121501
props.SortInPlace();
1513-
15141502
foreach (string prop in props)
15151503
{
15161504
// copy keywords to output
@@ -1587,9 +1575,7 @@ private void Frame(JsonLdApi.FramingContext state, JObject nodes
15871575
}
15881576
// handle defaults
15891577
props = new JArray(frame.GetKeys());
1590-
15911578
props.SortInPlace();
1592-
15931579
foreach (string prop_1 in props)
15941580
{
15951581
// skip keywords

src/json-ld.net/Core/JsonLdProcessor.cs

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -200,9 +200,7 @@ public static JToken Flatten(JToken input, JToken context, JsonLdOptions opts)
200200
entry["@graph"] = new JArray();
201201
}
202202
JArray keys = new JArray(graph.GetKeys());
203-
204203
keys.SortInPlace();
205-
206204
foreach (string id in keys)
207205
{
208206
JObject node = (JObject)graph[id];
@@ -216,9 +214,7 @@ public static JToken Flatten(JToken input, JToken context, JsonLdOptions opts)
216214
JArray flattened = new JArray();
217215
// 6)
218216
JArray keys_1 = new JArray(defaultGraph.GetKeys());
219-
220217
keys_1.SortInPlace();
221-
222218
foreach (string id_1 in keys_1)
223219
{
224220
JObject node = (JObject)defaultGraph[id_1

src/json-ld.net/Core/NormalizeUtils.cs

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,6 @@ public virtual object HashBlankNodes(IEnumerable<string> unnamed_)
4545
// done, name blank nodes
4646
bool named = false;
4747
IList<string> hashes = new List<string>(unique.Keys);
48-
4948
hashes.SortInPlace();
5049

5150
foreach (string hash in hashes)
@@ -75,7 +74,6 @@ public virtual object HashBlankNodes(IEnumerable<string> unnamed_)
7574
// names duplicate hash bnodes
7675
// enumerate duplicate hash groups in sorted order
7776
hashes = new List<string>(duplicates.Keys);
78-
7977
hashes.SortInPlace();
8078

8179
// process each group

0 commit comments

Comments
 (0)