| Index: mojo/edk/embedder/platform_handle.cc
|
| diff --git a/mojo/edk/embedder/platform_handle.cc b/mojo/edk/embedder/platform_handle.cc
|
| index 04d4f08e37b72714022fe5004c203f869bcc36fd..570aac9c2e896efb337169fde0546cd21a20fb90 100644
|
| --- a/mojo/edk/embedder/platform_handle.cc
|
| +++ b/mojo/edk/embedder/platform_handle.cc
|
| @@ -4,14 +4,7 @@
|
|
|
| #include "mojo/edk/embedder/platform_handle.h"
|
|
|
| -#include "build/build_config.h"
|
| -#if defined(OS_POSIX)
|
| #include <unistd.h>
|
| -#elif defined(OS_WIN)
|
| -#include <windows.h>
|
| -#else
|
| -#error "Platform not yet supported."
|
| -#endif
|
|
|
| #include "base/logging.h"
|
|
|
| @@ -22,17 +15,9 @@ void PlatformHandle::CloseIfNecessary() {
|
| if (!is_valid())
|
| return;
|
|
|
| -#if defined(OS_POSIX)
|
| bool success = (close(fd) == 0);
|
| DPCHECK(success);
|
| fd = -1;
|
| -#elif defined(OS_WIN)
|
| - bool success = !!CloseHandle(handle);
|
| - DPCHECK(success);
|
| - handle = INVALID_HANDLE_VALUE;
|
| -#else
|
| -#error "Platform not yet supported."
|
| -#endif
|
| }
|
|
|
| } // namespace embedder
|
|
|