Skip to content

Commit

Permalink
chore: remove unnecessary code
Browse files Browse the repository at this point in the history
  • Loading branch information
damonto committed Jul 21, 2024
1 parent e45b766 commit 158f82f
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 35 deletions.
3 changes: 1 addition & 2 deletions internal/lpac/cmd.go
Original file line number Diff line number Diff line change
Expand Up @@ -27,10 +27,9 @@ func NewCmd(ctx context.Context, APDU driver.APDU) *Cmd {
func (c *Cmd) Run(arguments []string, dst any, progress Progress) error {
c.APDU.Lock()
defer c.APDU.Unlock()
cmd := exec.CommandContext(c.ctx, filepath.Join(config.C.Dir, c.bin()), arguments...)
cmd := exec.CommandContext(c.ctx, filepath.Join(config.C.Dir, "lpac"), arguments...)
cmd.Dir = config.C.Dir
cmd.Env = append(cmd.Env, "LPAC_APDU=stdio")
c.forSystem(cmd)

stderr := bytes.Buffer{}
cmd.Stderr = &stderr
Expand Down
15 changes: 0 additions & 15 deletions internal/lpac/proc_other.go

This file was deleted.

18 changes: 0 additions & 18 deletions internal/lpac/proc_windows.go

This file was deleted.

0 comments on commit 158f82f

Please sign in to comment.