aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--paludis/util/pty.cc9
-rw-r--r--paludis/util/pty.hh3
2 files changed, 1 insertions, 11 deletions
diff --git a/paludis/util/pty.cc b/paludis/util/pty.cc
index 68c2c2e8c..d39b1282f 100644
--- a/paludis/util/pty.cc
+++ b/paludis/util/pty.cc
@@ -40,19 +40,12 @@ PtyError::PtyError(const std::string & our_message) throw () :
{
}
-Pty::Pty()
+Pty::Pty() : Pty(false, 0, 0)
{
- _init(false, 0, 0);
}
Pty::Pty(const bool close_exec, const unsigned short columns, const unsigned short lines)
{
- _init(close_exec, columns, lines);
-}
-
-void
-Pty::_init(const bool close_exec, const unsigned short columns, const unsigned short lines)
-{
Context context("When creating pty FDs:");
_fds[0] = posix_openpt(O_RDWR | O_NOCTTY | (close_exec ? O_CLOEXEC : 0));
diff --git a/paludis/util/pty.hh b/paludis/util/pty.hh
index 58d74859f..71877c6de 100644
--- a/paludis/util/pty.hh
+++ b/paludis/util/pty.hh
@@ -64,9 +64,6 @@ namespace paludis
class PALUDIS_VISIBLE Pty :
public Channel
{
- private:
- void _init(const bool, const unsigned short columns, const unsigned short lines);
-
public:
///\name Basic operations
///\{