23 lines
445 B
Go
23 lines
445 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{}
|
|
}
|