Skip to content

Commit eccb8f5

Browse files
committed
Remove unused JSON and Node path utility functions
1 parent b57cc2d commit eccb8f5

4 files changed

Lines changed: 0 additions & 27 deletions

File tree

packages/devextreme/testing/content/VectorMapData/_processFileContent.js

Lines changed: 0 additions & 3 deletions
This file was deleted.

packages/devextreme/testing/content/VectorMapData/_settings.js

Lines changed: 0 additions & 5 deletions
This file was deleted.

packages/devextreme/testing/runner/lib/http.ts

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -28,13 +28,6 @@ export function sendJson(res: ServerResponse, payload: unknown): void {
2828
res.end(JSON.stringify(payload));
2929
}
3030

31-
export function sendJsonText(res: ServerResponse, payloadText: string): void {
32-
setNoCacheHeaders(res);
33-
res.statusCode = 200;
34-
res.setHeader('Content-Type', 'application/json; charset=utf-8');
35-
res.end(payloadText);
36-
}
37-
3831
export function sendXml(res: ServerResponse, payload: string): void {
3932
setNoCacheHeaders(res);
4033
res.statusCode = 200;

packages/devextreme/testing/runner/lib/utils.ts

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
import * as fs from 'node:fs';
22
import { IncomingMessage } from 'node:http';
3-
import * as path from 'node:path';
43

54
import { PortsMap } from './types';
65

@@ -116,17 +115,6 @@ export function isContinuousIntegration(): boolean {
116115
return Boolean(process.env.CCNetWorkingDirectory || process.env.DEVEXTREME_TEST_CI);
117116
}
118117

119-
export function resolveNodePath(): string {
120-
if (process.env.CCNetWorkingDirectory) {
121-
const customPath = path.join(process.env.CCNetWorkingDirectory, 'node', 'node.exe');
122-
if (fs.existsSync(customPath)) {
123-
return customPath;
124-
}
125-
}
126-
127-
return 'node';
128-
}
129-
130118
export function readBodyText(req: IncomingMessage): Promise<string> {
131119
return new Promise((resolve, reject) => {
132120
const chunks: Buffer[] = [];

0 commit comments

Comments
 (0)