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

21 lines
430 B
Go
Raw Normal View History

2023-05-31 16:17:03 +07:00
package action
import (
. "ios-wrapper/internal/wrapper/ofile"
)
type removeUnnecessaryInfo struct{}
func (action *removeUnnecessaryInfo) withMacho(mf *MachoFile) error {
mf.Context().RemoveUnnecessaryInfo()
return nil
}
func (action *removeUnnecessaryInfo) withFat(ff *FatFile) error {
return defaultWithFat(action, ff)
}
func NewRemoveUnnecessaryInfoAction() *removeUnnecessaryInfo {
return &removeUnnecessaryInfo{}
}