Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

remove unused codes #806

Merged
merged 2 commits into from Sep 2, 2022
Merged

remove unused codes #806

merged 2 commits into from Sep 2, 2022

Conversation

yseto
Copy link
Contributor

@yseto yseto commented Sep 1, 2022

Remove unnecessary code in advance to update linter

@yseto yseto self-assigned this Sep 1, 2022
@yseto yseto marked this pull request as ready for review September 1, 2022 08:42
@@ -16,8 +16,6 @@ type CPUGenerator struct {

var cpuLogger = logging.GetLogger("spec.cpu")

type cpuSpec map[string]interface{}

// MEMO: sysctl -a machdep.cpu.brand_string

// Generate collects CPU specs.
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

cpu Spec still leave in the comment of below.

@@ -16,8 +16,6 @@ type CPUGenerator struct {

var cpuLogger = logging.GetLogger("spec.cpu")

type cpuSpec map[string]interface{}

// MEMO: sysctl -a machdep.cpu.brand_string

// Generate collects CPU specs.
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

same as freebsd

Copy link
Member

@lufia lufia left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good.

Note: IMO, the custom loggers defined in each resources, it is a part of the template, may be acceptable to leave by adding // nolint comment.

@yseto yseto merged commit 6ebc41b into master Sep 2, 2022
@yseto yseto deleted the remove-unused-code branch September 2, 2022 10:31
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants