diff --git a/src/basic/win32.cpp b/src/basic/win32.cpp index b81bdb3..45eaa96 100644 --- a/src/basic/win32.cpp +++ b/src/basic/win32.cpp @@ -386,26 +386,6 @@ Process CreateCommandLineProcess(String command_line, String working_dir) { return process; } -bool WaitForExit(Process *process) { - Assert(process->is_valid); - Win32Process *p = (Win32Process *)process->platform; - - if (WaitForSingleObject(p->handle, INFINITE) != WAIT_OBJECT_0) { - Assert(!"Invalid codepath"); - return false; - } - - DWORD exit_code; - bool get_exit_code_failed = GetExitCodeProcess(p->handle, &exit_code) == 0; - if (get_exit_code_failed) { - exit_code = -1; - } - - process->exit_code = (int)exit_code; - Win32CloseProcess(process); - return true; -} - bool PollExitCode(Process *process) { Assert(process->is_valid); Win32Process *p = (Win32Process *)process->platform; diff --git a/src/text_editor/todo.txt b/src/text_editor/todo.txt index 7d7ff04..4e7d7c2 100644 --- a/src/text_editor/todo.txt +++ b/src/text_editor/todo.txt @@ -16,8 +16,8 @@ - drag and drop file into the window - exe icon -combine glyph and selection rendering -debugging: resize dynamic array on every item add +- combine glyph and selection rendering +- debugging: resize dynamic array on every item add - search as a command to execute which is going to be in the title bar - search backwards