Skip to content

Commit

Permalink
remove unused code
Browse files Browse the repository at this point in the history
  • Loading branch information
gonpombo8 committed Jul 10, 2024
1 parent c8d333a commit 0ec53a2
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 20 deletions.
1 change: 0 additions & 1 deletion packages/@dcl/sdk-commands/src/components/config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,6 @@ export type ConfigKeys =
| 'DCL_ESTATE_REGISTRY_ADDRESS' // Address of the ESTATE_REGISTRY smart contract
| 'DCL_CATALYST' // Default catalyst
| 'EXPLORER_ALPHA_PATH' // Explorer alpha path to run app
| 'EXPLORER_ALPHA_PATH_2' // Explorer alpha path to run app

export const DCL_RC = '.dclrc'

Expand Down
19 changes: 0 additions & 19 deletions packages/@dcl/sdk-commands/src/logic/exec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@ interface Options {

export type IProcessSpawnerComponent = {
exec(cwd: string, command: string, args: string[], options?: Partial<Options>): Promise<void>
// exec2(cwd: string, command: string, args: string[], options?: Partial<Options>): Promise<unknown>
}

export function createProcessSpawnerComponent(spawnFn: typeof spawn): IProcessSpawnerComponent {
Expand Down Expand Up @@ -37,23 +36,5 @@ export function createProcessSpawnerComponent(spawnFn: typeof spawn): IProcessSp
})
})
}
// async exec2(cwd, command, args, { env, silent } = {}) {
// const subprocess = spawnFn(command, args, { shell: true, cwd, env: { ...process.env, NODE_ENV: '', ...env } })
// subprocess.on('error', (err) => {
// console.log({ err })
// })
// subprocess.on('message', (msg) => {
// console.log({ msg })
// })
// subprocess.on('close', (code: number) => {
// if (code !== 0) {
// const _ = `${command} ${args.join(' ')}`
// reject(new Error(`Command "${_}" exited with code ${code}. Please try running the command manually`))
// return
// }

// resolve(undefined)
// })
// }
}
}

0 comments on commit 0ec53a2

Please sign in to comment.