remove unused properties map
This commit is contained in:
parent
a23d72e007
commit
013142eb93
|
@ -22,7 +22,6 @@ import java.util.ArrayList;
|
|||
import java.util.HashMap;
|
||||
import java.util.List;
|
||||
import java.util.Map;
|
||||
import java.util.Properties;
|
||||
|
||||
public class Pdh extends Win32 {
|
||||
|
||||
|
@ -31,7 +30,6 @@ public class Pdh extends Win32 {
|
|||
|
||||
private long query = -1l; // Handle to the query
|
||||
private String hostname = null;
|
||||
private Properties names;
|
||||
|
||||
public Pdh() throws Win32Exception {
|
||||
this.query = pdhOpenQuery();
|
||||
|
@ -42,11 +40,6 @@ public class Pdh extends Win32 {
|
|||
this.hostname = hostName;
|
||||
}
|
||||
|
||||
public Pdh(Properties names) throws Win32Exception {
|
||||
this();
|
||||
this.names = names;
|
||||
}
|
||||
|
||||
protected void finalize() throws Throwable {
|
||||
try {
|
||||
this.close();
|
||||
|
@ -130,9 +123,6 @@ public class Pdh extends Win32 {
|
|||
if (this.hostname != null) {
|
||||
pdhConnectMachine(this.hostname);
|
||||
}
|
||||
if (this.names != null) {
|
||||
path = this.names.getProperty(path, path);
|
||||
}
|
||||
|
||||
long counter = pdhAddCounter(this.query, path);
|
||||
try {
|
||||
|
|
Loading…
Reference in New Issue