Skip to content

Commit 392110c

Browse files
authored
ref(replay): Remove unused method (#9613)
We aren't actually using this anymore anywhere.
1 parent 387ce48 commit 392110c

File tree

1 file changed

+0
-15
lines changed

1 file changed

+0
-15
lines changed

packages/replay/src/coreHandlers/util/networkUtils.ts

-15
Original file line numberDiff line numberDiff line change
@@ -110,21 +110,6 @@ export function makeNetworkReplayBreadcrumb(
110110
return result;
111111
}
112112

113-
/** Get either a JSON network body, or a text representation. */
114-
export function getNetworkBody(bodyText: string | undefined): NetworkBody | undefined {
115-
if (!bodyText) {
116-
return;
117-
}
118-
119-
try {
120-
return JSON.parse(bodyText);
121-
} catch {
122-
// return text
123-
}
124-
125-
return bodyText;
126-
}
127-
128113
/** Build the request or response part of a replay network breadcrumb that was skipped. */
129114
export function buildSkippedNetworkRequestOrResponse(bodySize: number | undefined): ReplayNetworkRequestOrResponse {
130115
return {

0 commit comments

Comments
 (0)