Skip to content

Commit

Permalink
refactor: remove an unused method
Browse files Browse the repository at this point in the history
  • Loading branch information
suzuki-shunsuke committed Jan 23, 2025
1 parent 5c81862 commit fdf3368
Showing 1 changed file with 0 additions and 14 deletions.
14 changes: 0 additions & 14 deletions pkg/controller/remove/remove.go
Original file line number Diff line number Diff line change
Expand Up @@ -191,20 +191,6 @@ func (c *Controller) removeCommand(ctx context.Context, logE *logrus.Entry, para
return nil
}

func (c *Controller) removeTimestamp(pkg *config.Package) error {
pkgPath, err := pkg.PkgPath(c.runtime)
if err != nil {
return fmt.Errorf("get a package path: %w", err)
}
if err := c.vacuum.Remove(pkgPath); err != nil {
if errors.Is(err, fs.ErrNotExist) {
return nil
}
return fmt.Errorf("remove the last used datetime: %w", err)
}
return nil
}

func (c *Controller) removePackage(logE *logrus.Entry, rootDir string, pkg *registry.PackageInfo) error {
var gErr error
logE.Info("removing a package")
Expand Down

0 comments on commit fdf3368

Please sign in to comment.