2023-06-01 17:29:23 +07:00
|
|
|
package action
|
|
|
|
|
|
|
|
import (
|
|
|
|
. "ios-wrapper/internal/wrapper/ofile"
|
|
|
|
)
|
|
|
|
|
|
|
|
type removeImports struct{}
|
|
|
|
|
|
|
|
func (action *removeImports) withMacho(mf *MachoFile) error {
|
|
|
|
mf.Context().RemoveBindSymbols()
|
2023-06-06 13:15:31 +07:00
|
|
|
mf.Context().RemoveSymbolTable()
|
|
|
|
mf.Context().RemoveExportTrie()
|
2023-06-01 17:29:23 +07:00
|
|
|
return nil
|
|
|
|
}
|
|
|
|
|
|
|
|
func (action *removeImports) withFat(ff *FatFile) error {
|
|
|
|
return defaultWithFat(action, ff)
|
|
|
|
}
|
|
|
|
|
|
|
|
func NewRemoveImportsAction() *removeImports {
|
|
|
|
return &removeImports{}
|
|
|
|
}
|
|
|
|
|