Index: base/process/kill_win.cc |
diff --git a/base/process/kill_win.cc b/base/process/kill_win.cc |
index 4f0f2efc1a46423275c056a9878c50a8b4956aca..3c93047f5b04b3d0d5eb747f0021912c717a2ce1 100644 |
--- a/base/process/kill_win.cc |
+++ b/base/process/kill_win.cc |
@@ -101,22 +101,6 @@ bool KillProcess(ProcessHandle process, int exit_code, bool wait) { |
return result; |
} |
-// Attempts to kill the process identified by the given process |
-// entry structure, giving it the specified exit code. |
-// Returns true if this is successful, false otherwise. |
-bool KillProcessById(ProcessId process_id, int exit_code, bool wait) { |
- HANDLE process = OpenProcess(PROCESS_TERMINATE | SYNCHRONIZE, |
- FALSE, // Don't inherit handle |
- process_id); |
- if (!process) { |
- DPLOG(ERROR) << "Unable to open process " << process_id; |
- return false; |
- } |
- bool ret = KillProcess(process, exit_code, wait); |
- CloseHandle(process); |
- return ret; |
-} |
- |
TerminationStatus GetTerminationStatus(ProcessHandle handle, int* exit_code) { |
DWORD tmp_exit_code = 0; |