From e3c477abe5362b9ef64467e7a94ad7e8cad0aa3d Mon Sep 17 00:00:00 2001 From: Leo Euclides Date: Tue, 1 Oct 2024 10:07:34 -0300 Subject: [PATCH] Cleanup unsused imports and functions on holodeck --- packages/holodeck/server/index.js | 16 ---------------- 1 file changed, 16 deletions(-) diff --git a/packages/holodeck/server/index.js b/packages/holodeck/server/index.js index 5b971011e47..f98cec03477 100644 --- a/packages/holodeck/server/index.js +++ b/packages/holodeck/server/index.js @@ -5,12 +5,10 @@ import { Hono } from 'hono'; import { cors } from 'hono/cors'; import { HTTPException } from 'hono/http-exception'; import { logger } from 'hono/logger'; -import { execSync } from 'node:child_process'; import crypto from 'node:crypto'; import fs from 'node:fs'; import http2 from 'node:http2'; import zlib from 'node:zlib'; -import { homedir, userInfo } from 'os'; import path from 'path'; /** @type {import('bun-types')} */ @@ -18,20 +16,6 @@ const isBun = typeof Bun !== 'undefined'; const DEBUG = process.env.DEBUG?.includes('holodeck') || process.env.DEBUG === '*'; const CURRENT_FILE = new URL(import.meta.url).pathname; -function getShellConfigFilePath() { - const shell = userInfo().shell; - switch (shell) { - case '/bin/zsh': - return path.join(homedir(), '.zshrc'); - case '/bin/bash': - return path.join(homedir(), '.bashrc'); - default: - throw Error( - `Unable to determine configuration file for shell: ${shell}. Manual SSL Cert Setup Required for Holodeck.` - ); - } -} - function getCertInfo() { let CERT_PATH = process.env.HOLODECK_SSL_CERT_PATH; let KEY_PATH = process.env.HOLODECK_SSL_KEY_PATH;