From 2e1104293dd2cd6a23f2683ce0ae504b17e589d6 Mon Sep 17 00:00:00 2001 From: Max Marrone Date: Wed, 24 Apr 2024 16:43:57 -0400 Subject: [PATCH] Lint. --- app-shell/src/protocol-storage/index.ts | 13 ------------- app-shell/src/usb.ts | 3 --- app/src/redux/shell/remote.ts | 1 - 3 files changed, 17 deletions(-) diff --git a/app-shell/src/protocol-storage/index.ts b/app-shell/src/protocol-storage/index.ts index 7c202e9be92..53ec7148861 100644 --- a/app-shell/src/protocol-storage/index.ts +++ b/app-shell/src/protocol-storage/index.ts @@ -1,7 +1,6 @@ import fse from 'fs-extra' import path from 'path' import { shell } from 'electron' -import first from 'lodash/first' import { ADD_PROTOCOL, @@ -48,18 +47,6 @@ export const getParsedAnalysisFromPath = ( } } -export const getProtocolSrcFilePaths = ( - protocolKey: string -): Promise => { - const protocolDir = `${FileSystem.PROTOCOLS_DIRECTORY_PATH}/${protocolKey}` - return ensureDir(protocolDir) - .then(() => FileSystem.parseProtocolDirs([protocolDir])) - .then(storedProtocols => { - const storedProtocol = first(storedProtocols) - return storedProtocol?.srcFilePaths ?? [] - }) -} - // Revert a v7.0.0 pre-parity stop-gap solution. const migrateProtocolsFromTempDirectory = preParityMigrateProtocolsFrom( FileSystem.PRE_V7_PARITY_DIRECTORY_PATH, diff --git a/app-shell/src/usb.ts b/app-shell/src/usb.ts index d28efb12352..48f2eb01839 100644 --- a/app-shell/src/usb.ts +++ b/app-shell/src/usb.ts @@ -1,8 +1,6 @@ import { ipcMain, IpcMainInvokeEvent } from 'electron' import axios, { AxiosRequestConfig } from 'axios' import FormData from 'form-data' -import fs from 'fs' -import path from 'path' import { fetchSerialPortList, @@ -12,7 +10,6 @@ import { } from '@opentrons/usb-bridge/node-client' import { createLogger } from './log' -import { getProtocolSrcFilePaths } from './protocol-storage' import { usbRequestsStart, usbRequestsStop } from './config/actions' import { SYSTEM_INFO_INITIALIZED, diff --git a/app/src/redux/shell/remote.ts b/app/src/redux/shell/remote.ts index 7419ef94e85..9a1af596652 100644 --- a/app/src/redux/shell/remote.ts +++ b/app/src/redux/shell/remote.ts @@ -1,6 +1,5 @@ // access main process remote modules via attachments to `global` import type { AxiosRequestConfig, AxiosResponse } from 'axios' -import type { ResponsePromise } from '@opentrons/api-client' import type { Remote, NotifyTopic, NotifyResponseData } from './types' const emptyRemote: Remote = {} as any