Skip to content

Commit c145c00

Browse files
authored
Remove no longer unused getQueryResultOrValue (#1310)
1 parent 3a1d1b0 commit c145c00

File tree

2 files changed

+0
-12
lines changed

2 files changed

+0
-12
lines changed

packages/runner/src/index.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,6 @@ export { isDoc } from "./doc.ts";
1919
export { isCell, isStream } from "./cell.ts";
2020
export {
2121
getCellLinkOrThrow,
22-
getCellLinkOrValue,
2322
isQueryResult,
2423
isQueryResultForDereferencing,
2524
} from "./query-result-proxy.ts";

packages/runner/src/query-result-proxy.ts

Lines changed: 0 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -301,17 +301,6 @@ function isProxyForArrayValue(value: any): value is ProxyForArrayValue {
301301
return isRecord(value) && originalIndex in value;
302302
}
303303

304-
/**
305-
* Get cell link or return values as is if not a cell value proxy.
306-
*
307-
* @param {any} value - The value to get the cell link or value from.
308-
* @returns {LegacyDocCellLink | any}
309-
*/
310-
export function getCellLinkOrValue(value: any): LegacyDocCellLink {
311-
if (isQueryResult(value)) return value[getCellLink];
312-
else return value;
313-
}
314-
315304
/**
316305
* Get cell link or throw if not a cell value proxy.
317306
*

0 commit comments

Comments
 (0)