Remove rest of Fd.cpp.

GitOrigin-RevId: 8f6696a0092eb200a7ed4bb7e4fcd4b36886ac1d
This commit is contained in:
levlam 2018-09-12 04:58:49 +03:00
parent d2171a77e1
commit 90888e3b98
3 changed files with 0 additions and 65 deletions

View File

@ -33,7 +33,6 @@ endif()
set(TDUTILS_SOURCE set(TDUTILS_SOURCE
td/utils/port/Clocks.cpp td/utils/port/Clocks.cpp
#td/utils/port/Fd.cpp
td/utils/port/FileFd.cpp td/utils/port/FileFd.cpp
td/utils/port/IPAddress.cpp td/utils/port/IPAddress.cpp
td/utils/port/path.cpp td/utils/port/path.cpp
@ -94,7 +93,6 @@ set(TDUTILS_SOURCE
td/utils/port/CxCli.h td/utils/port/CxCli.h
td/utils/port/EventFd.h td/utils/port/EventFd.h
td/utils/port/EventFdBase.h td/utils/port/EventFdBase.h
#td/utils/port/Fd.h
td/utils/port/FileFd.h td/utils/port/FileFd.h
td/utils/port/IPAddress.h td/utils/port/IPAddress.h
td/utils/port/path.h td/utils/port/path.h

View File

@ -1,53 +0,0 @@
//
// Copyright Aliaksei Levin (levlam@telegram.org), Arseny Smirnov (arseny30@gmail.com) 2014-2018
//
// Distributed under the Boost Software License, Version 1.0. (See accompanying
// file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
//
#if 0
namespace td {
#if TD_PORT_WINDOWS
#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP | WINAPI_PARTITION_SYSTEM)
Fd &Fd::Stderr() {
static auto handle = GetStdHandle(STD_ERROR_HANDLE);
LOG_IF(FATAL, handle == INVALID_HANDLE_VALUE) << "Failed to get stderr";
static auto fd = Fd(Fd::Type::FileFd, Fd::Mode::Reference, handle);
return fd;
}
Fd &Fd::Stdin() {
static auto handle = GetStdHandle(STD_INPUT_HANDLE);
LOG_IF(FATAL, handle == INVALID_HANDLE_VALUE) << "Failed to get stdin";
static auto fd = Fd(Fd::Type::FileFd, Fd::Mode::Reference, handle);
return fd;
}
Fd &Fd::Stdout() {
static auto handle = GetStdHandle(STD_OUTPUT_HANDLE);
LOG_IF(FATAL, handle == INVALID_HANDLE_VALUE) << "Failed to get stdout";
static auto fd = Fd(Fd::Type::FileFd, Fd::Mode::Reference, handle);
return fd;
}
#else
Fd &Fd::Stderr() {
static Fd result;
result = Fd();
return result;
}
Fd &Fd::Stdin() {
static Fd result;
result = Fd();
return result;
}
Fd &Fd::Stdout() {
static Fd result;
result = Fd();
return result;
}
#endif
#endif
} // namespace td
#endif

View File

@ -1,10 +0,0 @@
//
// Copyright Aliaksei Levin (levlam@telegram.org), Arseny Smirnov (arseny30@gmail.com) 2014-2018
//
// Distributed under the Boost Software License, Version 1.0. (See accompanying
// file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
//
#pragma once
#if 0
#endif