Skip to content

Commit 7266a94

Browse files
committed
Remove unused import and function
1 parent 9349fe5 commit 7266a94

File tree

2 files changed

+1
-5
lines changed

2 files changed

+1
-5
lines changed

src/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ import { createResponse } from './utils';
22
import handleStudioRequest from "./studio";
33
import { Handler } from "./handler";
44
import { DatabaseStub, DataSource, RegionLocationHint, Source } from './types';
5-
import { corsHeaders, corsPreflight } from './cors';
5+
import { corsPreflight } from './cors';
66
export { DatabaseDurableObject } from './do';
77

88
const DURABLE_OBJECT_ID = 'sql-durable-object';

src/utils.ts

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,3 @@ export function createResponse(result: any, error: string | undefined, status: n
3535
status,
3636
});
3737
};
38-
39-
export function createResponseFromOperationResponse(response: { result?: any, error?: string | undefined, status: number }): Response {
40-
return createResponse(response.result, response.error, response.status);
41-
}

0 commit comments

Comments
 (0)