Bug 913953 - Part g: Remove unused GetProcessCount function; r=ehsan

This commit is contained in:
Ms2ger 2013-09-10 09:03:33 +02:00
parent 35a25e07d2
commit d5fd6876ed
3 changed files with 0 additions and 26 deletions

View File

@ -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.

View File

@ -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

View File

@ -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