Fixes for clang-tidy-9
[alexxy/gromacs.git] / src / gromacs / utility / filestream.cpp
index 4893c509fe1cda87cf94c9bbc6cc2075aad0a6ae..4773b5c2c8ba886b5271b614b66252cd969c0489 100644 (file)
@@ -1,7 +1,7 @@
 /*
  * 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.
@@ -153,7 +153,8 @@ using internal::FileStreamImpl;
  * StandardInputStream
  */
 
-bool StandardInputStream::isInteractive() const
+// static
+bool StandardInputStream::isInteractive()
 {
 #ifdef HAVE_UNISTD_H
     return isatty(fileno(stdin)) != 0;
@@ -167,13 +168,6 @@ bool StandardInputStream::readLine(std::string* line)
     return readLineImpl(stdin, line);
 }
 
-// static
-StandardInputStream& StandardInputStream::instance()
-{
-    static StandardInputStream stdinObject;
-    return stdinObject;
-}
-
 /********************************************************************
  * TextInputFile
  */