Repository navigation
Commit 3f5f1cc
committed
kvm: remove unused private members reported by PMD
Running PMD's UnusedPrivateMethod, UnusedPrivateField and
UnusedLocalVariable rules over the module reported these, each verified
by hand against the sources and the tests:
LibvirtComputingResource: field host, field gson, method
executeBashScript, local devNum in configureIpAddresses, local
brname in destroyNetworkRulesForVM
LibvirtConnection: field s_connection
LibvirtStorageAdaptor: field _manageSnapshotPath and its lookup of
managesnapshot.sh, which the adaptor never ran
LibvirtMigrateCommandWrapper: method isClvmBlockDevice
LibvirtCopyToSecondaryStorageWrapper: local success
LibvirtCreateDiskOnlyVMSnapshotCommandWrapper: two unused copies of
the volume list
Left as reported: getPifs and getOvsPifs are called and were flagged in
error, and the write-only fields _crash and _readonly in LibvirtVMDef
are kept because dropping them would silently turn their setters into
no-ops.1 parent f5ef4e6 commit 3f5f1cc
6 files changed
Lines changed: 0 additions & 23 deletions
File tree
- plugins/hypervisors/kvm/src/main/java/com/cloud/hypervisor/kvm
- resource
- wrapper
- storage
Lines changed: 0 additions & 9 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
255 | 255 | | |
256 | 256 | | |
257 | 257 | | |
258 | | - | |
259 | 258 | | |
260 | 259 | | |
261 | 260 | | |
| |||
439 | 438 | | |
440 | 439 | | |
441 | 440 | | |
442 | | - | |
443 | 441 | | |
444 | 442 | | |
445 | 443 | | |
| |||
599 | 597 | | |
600 | 598 | | |
601 | 599 | | |
602 | | - | |
603 | 600 | | |
604 | 601 | | |
605 | 602 | | |
| |||
2747 | 2744 | | |
2748 | 2745 | | |
2749 | 2746 | | |
2750 | | - | |
2751 | 2747 | | |
2752 | 2748 | | |
2753 | 2749 | | |
| |||
5080 | 5076 | | |
5081 | 5077 | | |
5082 | 5078 | | |
5083 | | - | |
5084 | | - | |
5085 | | - | |
5086 | | - | |
5087 | 5079 | | |
5088 | 5080 | | |
5089 | 5081 | | |
| |||
5606 | 5598 | | |
5607 | 5599 | | |
5608 | 5600 | | |
5609 | | - | |
5610 | 5601 | | |
5611 | 5602 | | |
5612 | 5603 | | |
| |||
Lines changed: 0 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
34 | 34 | | |
35 | 35 | | |
36 | 36 | | |
37 | | - | |
38 | 37 | | |
39 | 38 | | |
40 | 39 | | |
| |||
Lines changed: 0 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
47 | 47 | | |
48 | 48 | | |
49 | 49 | | |
50 | | - | |
51 | | - | |
52 | 50 | | |
53 | 51 | | |
54 | 52 | | |
| |||
Lines changed: 0 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
96 | 96 | | |
97 | 97 | | |
98 | 98 | | |
99 | | - | |
100 | 99 | | |
101 | 100 | | |
102 | 101 | | |
| |||
164 | 163 | | |
165 | 164 | | |
166 | 165 | | |
167 | | - | |
168 | 166 | | |
169 | 167 | | |
170 | 168 | | |
| |||
Lines changed: 0 additions & 7 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1082 | 1082 | | |
1083 | 1083 | | |
1084 | 1084 | | |
1085 | | - | |
1086 | | - | |
1087 | | - | |
1088 | | - | |
1089 | | - | |
1090 | | - | |
1091 | | - | |
1092 | 1085 | | |
1093 | 1086 | | |
1094 | 1087 | | |
| |||
Lines changed: 0 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
85 | 85 | | |
86 | 86 | | |
87 | 87 | | |
88 | | - | |
89 | 88 | | |
90 | 89 | | |
91 | 90 | | |
| |||
106 | 105 | | |
107 | 106 | | |
108 | 107 | | |
109 | | - | |
110 | 108 | | |
111 | 109 | | |
112 | 110 | | |
| |||
0 commit comments