Skip to content

Commit ca37682

Browse files
committed
Remove framing graphStack code.
- Code was unused and has been removed from the framing spec.
1 parent def4665 commit ca37682

File tree

2 files changed

+1
-3
lines changed

2 files changed

+1
-3
lines changed

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,7 @@
3333
- `pruneBlankNodeIdentifiers` based on processingMode.
3434
- `omitGraph` based on processingMode.
3535
- Replaced `removePreserve` with `cleanupPreserve` and `cleanupNulls`.
36+
- Remove unused framing `graphStack` code that was removed from the spec.
3637

3738
### Added
3839
- Support for `"@import"`.

lib/frame.js

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,6 @@ api.frameMergedOrDefault = (input, frame, options) => {
3333
embedded: false,
3434
graph: '@default',
3535
graphMap: {'@default': {}},
36-
graphStack: [],
3736
subjectStack: [],
3837
link: {},
3938
bnodeMap: {}
@@ -188,12 +187,10 @@ api.frame = (state, subjects, frame, parent, property = null) => {
188187
}
189188

190189
if(recurse) {
191-
state.graphStack.push(state.graph);
192190
// recurse into graph
193191
api.frame(
194192
{...state, graph: id, embedded: false},
195193
Object.keys(state.graphMap[id]).sort(), [subframe], output, '@graph');
196-
state.graphStack.pop();
197194
}
198195
}
199196

0 commit comments

Comments
 (0)