clean code

This commit is contained in:
2023-07-12 13:34:30 +07:00
parent 4ee62a2d93
commit 4016abf40d
3 changed files with 14 additions and 16 deletions

View File

@ -122,18 +122,6 @@ func (action *saveImports) saveToInfo(mf *MachoFile) error {
SegmentIndex: symbol.Segment(),
Offset: uint32(offset),
})
// fmt.Printf("{\"%s\", \"%s\", 0x%x, 0x%x, 0x%x},\n",
// symbol.Name(), symbol.Dylib(), symbol.Segment(), offset)
// symbols = append(symbols,
// &protomodel.MachoInfo_BindSymbol{
// Name: symbol.Name(),
// Libname: symbol.Dylib(),
// Libhash: dylib_hash,
// Segment: symbol.Segment(),
// Offset: offset,
// })
}
mf.Info().Symbols = &protomodel.MachoInfo_AllImportedSymbols{
Libs: libs,