Skip to content

Commit

Permalink
chore: remove unused code
Browse files Browse the repository at this point in the history
  • Loading branch information
Zxilly committed Jan 29, 2024
1 parent d1b3f8d commit 2628d3b
Showing 1 changed file with 2 additions and 17 deletions.
19 changes: 2 additions & 17 deletions macho.go
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,6 @@ import (
"debug/gosym"
"debug/macho"
"fmt"
"math"
"os"
)

Expand All @@ -42,22 +41,8 @@ func openMachO(fp string) (*machoFile, error) {
var _ fileHandler = (*machoFile)(nil)

type machoFile struct {
file *macho.File
osFile *os.File
textStart uint64
}

func (m *machoFile) trySetTextStart() {
addr := uint64(math.MaxUint64)
if m.file.Symtab != nil {
for _, sym := range m.file.Symtab.Syms {
if sym.Name == "runtime.text" {
addr = sym.Value
break
}
}
}
m.textStart = addr
file *macho.File
osFile *os.File
}

func (m *machoFile) GetParsedFile() any {
Expand Down

0 comments on commit 2628d3b

Please sign in to comment.