Skip to content

Commit a41f613

Browse files
committed
Remove legacy code no longer needed
1 parent 0adf1fd commit a41f613

1 file changed

Lines changed: 0 additions & 24 deletions

File tree

src/resource/solidDataset.ts

Lines changed: 0 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -1168,30 +1168,6 @@ export async function getWellKnownSolid(
11681168
// at the pod's root.
11691169
}
11701170

1171-
// 1.1s implementation:
1172-
const resourceMetadata = await getResourceInfo(urlString, {
1173-
fetch: options?.fetch,
1174-
// Discovering the .well-known/solid document is useful even for resources
1175-
// we don't have access to.
1176-
ignoreAuthenticationErrors: true,
1177-
});
1178-
const linkedResources = getLinkedResourceUrlAll(resourceMetadata);
1179-
const rootResources = linkedResources[pim.storage];
1180-
const rootResource = rootResources?.length === 1 ? rootResources[0] : null;
1181-
// If pod root (storage) was advertised, retrieve well known solid from pod's root
1182-
if (rootResource !== null) {
1183-
const wellKnownSolidUrl = new URL(
1184-
".well-known/solid",
1185-
rootResource.endsWith("/") ? rootResource : `${rootResource}/`,
1186-
).href;
1187-
return getSolidDataset(wellKnownSolidUrl, {
1188-
...options,
1189-
parsers: {
1190-
"application/ld+json": getJsonLdParser(),
1191-
},
1192-
});
1193-
}
1194-
11951171
throw new Error(
11961172
"Could not determine storage root or well-known solid resource.",
11971173
);

0 commit comments

Comments
 (0)