/*
* This file is part of the GROMACS molecular simulation package.
*
- * Copyright (c) 2015,2017,2018,2019, by the GROMACS development team, led by
+ * Copyright (c) 2015,2017,2018,2019,2020, by the GROMACS development team, led by
* Mark Abraham, David van der Spoel, Berk Hess, and Erik Lindahl,
* and including many others, as listed in the AUTHORS file in the
* top-level source directory and at http://www.gromacs.org.
* StandardInputStream
*/
-bool StandardInputStream::isInteractive() const
+// static
+bool StandardInputStream::isInteractive()
{
#ifdef HAVE_UNISTD_H
return isatty(fileno(stdin)) != 0;
return readLineImpl(stdin, line);
}
-// static
-StandardInputStream& StandardInputStream::instance()
-{
- static StandardInputStream stdinObject;
- return stdinObject;
-}
-
/********************************************************************
* TextInputFile
*/