diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt index 11b110f44..acb732525 100644 --- a/src/CMakeLists.txt +++ b/src/CMakeLists.txt @@ -6,7 +6,6 @@ add_library(psl-native SHARED getfullyqualifiedname.cpp issymlink.cpp isexecutable.cpp - setdate.cpp - terminal.cpp) + setdate.cpp) target_include_directories(psl-native PUBLIC ${CMAKE_CURRENT_SOURCE_DIR}) diff --git a/src/terminal.cpp b/src/terminal.cpp deleted file mode 100644 index 44fadd084..000000000 --- a/src/terminal.cpp +++ /dev/null @@ -1,21 +0,0 @@ -#include "terminal.h" -#include - -int32_t GetTerminalWidth() -{ - struct winsize ws; - if (-1 == ioctl(0,TIOCGWINSZ,&ws)) - return -1; - - return ws.ws_col; -} - -int32_t GetTerminalHeight() -{ - struct winsize ws; - if (-1 == ioctl(0,TIOCGWINSZ,&ws)) - return -1; - - return ws.ws_row; -} - diff --git a/src/terminal.h b/src/terminal.h deleted file mode 100644 index e036bc849..000000000 --- a/src/terminal.h +++ /dev/null @@ -1,11 +0,0 @@ -#pragma once - -#include "pal.h" - -PAL_BEGIN_EXTERNC - -int32_t GetTerminalWidth(); -int32_t GetTerminalHeight(); - -PAL_END_EXTERNC -