Skip to content

Commit

Permalink
chore: remove commented out dead code
Browse files Browse the repository at this point in the history
  • Loading branch information
tjhop committed May 17, 2024
1 parent 8cbf358 commit 47196a9
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 3 deletions.
1 change: 0 additions & 1 deletion cmd/mango/mango.go
Original file line number Diff line number Diff line change
Expand Up @@ -144,7 +144,6 @@ func mango(ctx context.Context, logger *slog.Logger, inventoryPath, hostname str
inv := inventory.NewInventory(inventoryPath, hostname)
// reload inventory
inv.Reload(ctx, inventoryLogger)
// enrolled := inv.IsEnrolled()

// start manager, reload it with data from inventory, and then start a run of everything for the system
managerLogger := logger.With(
Expand Down
2 changes: 0 additions & 2 deletions internal/inventory/inventory.go
Original file line number Diff line number Diff line change
Expand Up @@ -394,8 +394,6 @@ func (i *Inventory) GetRolesForHost(host string) []Role {
// GetRolesForSelf returns a slice of Roles, containing all of the
// Roles for the running system from the inventory.
func (i *Inventory) GetRolesForSelf() []Role {
// return i.GetRolesForHost(i.hostname)

var roles []Role

roles = append(roles, i.GetRolesForHost(i.hostname)...)
Expand Down

0 comments on commit 47196a9

Please sign in to comment.