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 member of daemon config #2593

Merged
merged 1 commit into from
Dec 20, 2018

Conversation

zjumoon01
Copy link
Contributor

ListenCRI which is the member of daemon config, is unused.

ListenCRI was first added in commit 05e4923. Commit 05e4923
was pushed on Jan 12, and merged on Mar 6.

ListenCRI was deleted in commit 05e4923, which was merged on
Jan 16.

So, it was a mistake that the deleted ListenCRI was added back
by the merge of 05e4923.

Signed-off-by: Wang Rui baijia.wr@antfin.com

Ⅰ. Describe what this PR did

Remove unused code.

Ⅱ. Does this pull request fix one issue?

Ⅲ. Why don't you add test cases (unit test/integration test)? (你真的觉得不需要加测试吗?)

Ⅳ. Describe how to verify it

Ⅴ. Special notes for reviews

ListenCRI which is the member of daemon config, is unused.

ListenCRI was first added in commit 05e4923. Commit 05e4923
was pushed on Jan 12, and merged on Mar 6.

ListenCRI was deleted in commit 05e4923, which was merged on
Jan 16.

So, it was a mistake that the deleted ListenCRI was added back
by the merge of 05e4923.

Signed-off-by: Wang Rui <baijia.wr@antfin.com>
@codecov
Copy link

codecov bot commented Dec 20, 2018

Codecov Report

Merging #2593 into master will increase coverage by 0.08%.
The diff coverage is n/a.

Impacted file tree graph

@@            Coverage Diff             @@
##           master    #2593      +/-   ##
==========================================
+ Coverage   69.11%   69.19%   +0.08%     
==========================================
  Files         278      278              
  Lines       18689    18689              
==========================================
+ Hits        12916    12931      +15     
+ Misses       4297     4284      -13     
+ Partials     1476     1474       -2
Flag Coverage Δ
#criv1alpha1test 31.45% <ø> (+0.22%) ⬆️
#criv1alpha2test 35.77% <ø> (+0.19%) ⬆️
#integrationtest 40.76% <ø> (ø) ⬆️
#nodee2etest 32.69% <ø> (-0.03%) ⬇️
#unittest 26.74% <ø> (ø) ⬆️
Impacted Files Coverage Δ
daemon/config/config.go 66.21% <ø> (ø) ⬆️
daemon/mgr/snapshot.go 89.85% <0%> (-4.35%) ⬇️
cri/v1alpha2/cri_wrapper.go 64.4% <0%> (-1.2%) ⬇️
daemon/mgr/spec_linux.go 76.74% <0%> (-1%) ⬇️
daemon/mgr/container.go 59% <0%> (+0.21%) ⬆️
cri/v1alpha2/cri.go 69.24% <0%> (+0.24%) ⬆️
ctrd/container.go 59.28% <0%> (+0.39%) ⬆️
cri/v1alpha1/cri.go 60.92% <0%> (+0.66%) ⬆️
daemon/mgr/container_utils.go 85.11% <0%> (+1.19%) ⬆️
pkg/meta/store.go 68.99% <0%> (+1.55%) ⬆️
... and 2 more

@allencloud
Copy link
Collaborator

LGTM, actually I did not see any usage of this parameter in non-test go files.

@pouchrobot pouchrobot added the LGTM one maintainer or community participant agrees to merge the pull reuqest. label Dec 20, 2018
@allencloud allencloud merged commit 0334f3e into AliyunContainerService:master Dec 20, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
LGTM one maintainer or community participant agrees to merge the pull reuqest. size/XS
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants