macho/macho-go/internal/wrapper/action/remove_imports.go

24 lines
446 B
Go

package action
import (
. "ios-wrapper/internal/wrapper/ofile"
)
type removeImports struct{}
func (action *removeImports) withMacho(mf *MachoFile) error {
mf.Context().RemoveBindSymbols()
mf.Context().RemoveSymbolTable()
mf.Context().RemoveExportTrie()
return nil
}
func (action *removeImports) withFat(ff *FatFile) error {
return defaultWithFat(action, ff)
}
func NewRemoveImportsAction() *removeImports {
return &removeImports{}
}