Skip to content

Commit

Permalink
chore: remove commented-out code
Browse files Browse the repository at this point in the history
  • Loading branch information
tpluscode committed Sep 20, 2024
1 parent 83ddccb commit f2a8da1
Showing 1 changed file with 0 additions and 23 deletions.
23 changes: 0 additions & 23 deletions cli/lib/metadata.ts
Original file line number Diff line number Diff line change
Expand Up @@ -276,29 +276,6 @@ export async function loadCubeMetadata(this: Context, { jobUri, endpoint, user,
})
}

/*
export async function injectObservedBy(this: Context, jobUri: string) {
const Hydra = this.variables.get('apiClient')
const { maintainer } = await loadDataset(jobUri, Hydra)
return obj(function (quad: Quad, _, callback) {
if (quad.predicate.equals(cube.observedBy)) {
const creatorTerms = maintainer.pointer.out(cube.observedBy).terms
for (const creator of creatorTerms) {
if (creator.termType === 'NamedNode') {
this.push($rdf.quad(quad.subject, cube.observedBy, creator))
}
}
} else {
this.push(quad)
}
callback()
})
}
*/

export async function getObserver(this: Context, jobUri: string) {
const Hydra = this.variables.get('apiClient')
const { maintainer } = await loadDataset(jobUri, Hydra)
Expand Down

0 comments on commit f2a8da1

Please sign in to comment.