mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 913953 - Part g: Remove unused GetProcessCount function; r=ehsan
This commit is contained in:
parent
35a25e07d2
commit
d5fd6876ed
@ -214,12 +214,6 @@ class ProcessFilter {
|
||||
virtual ~ProcessFilter() { }
|
||||
};
|
||||
|
||||
// Returns the number of processes on the machine that are running from the
|
||||
// given executable name. If filter is non-null, then only processes selected
|
||||
// by the filter will be counted.
|
||||
int GetProcessCount(const std::wstring& executable_name,
|
||||
const ProcessFilter* filter);
|
||||
|
||||
// Attempts to kill the process identified by the given process
|
||||
// entry structure, giving it the specified exit code. If |wait| is true, wait
|
||||
// for the process to be actually terminated before returning.
|
||||
|
@ -426,14 +426,4 @@ bool GetAppOutput(const CommandLine& cl, std::string* output) {
|
||||
}
|
||||
}
|
||||
|
||||
int GetProcessCount(const std::wstring& executable_name,
|
||||
const ProcessFilter* filter) {
|
||||
int count = 0;
|
||||
|
||||
NamedProcessIterator iter(executable_name, filter);
|
||||
while (iter.NextProcessEntry())
|
||||
++count;
|
||||
return count;
|
||||
}
|
||||
|
||||
} // namespace base
|
||||
|
@ -539,16 +539,6 @@ void NamedProcessIterator::InitProcessEntry(ProcessEntry* entry) {
|
||||
entry->dwSize = sizeof(*entry);
|
||||
}
|
||||
|
||||
int GetProcessCount(const std::wstring& executable_name,
|
||||
const ProcessFilter* filter) {
|
||||
int count = 0;
|
||||
|
||||
NamedProcessIterator iter(executable_name, filter);
|
||||
while (iter.NextProcessEntry())
|
||||
++count;
|
||||
return count;
|
||||
}
|
||||
|
||||
///////////////////////////////////////////////////////////////////////////////
|
||||
// ProcesMetrics
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user