summaryrefslogtreecommitdiff
path: root/src/lib/cross_linux.cc
diff options
context:
space:
mode:
authorCarl Hetherington <cth@carlh.net>2020-11-25 13:14:44 +0100
committerCarl Hetherington <cth@carlh.net>2020-11-25 13:14:44 +0100
commit9276310e6c9be6148ea8b465b44af55413dc0dc0 (patch)
tree84a4265b1e928b2ba36bcbabbdd3c0fae0df6aef /src/lib/cross_linux.cc
parente43dababfc7aaf1429d3552e91b24e4e51979111 (diff)
Remove unused method.
Diffstat (limited to 'src/lib/cross_linux.cc')
-rw-r--r--src/lib/cross_linux.cc23
1 files changed, 0 insertions, 23 deletions
diff --git a/src/lib/cross_linux.cc b/src/lib/cross_linux.cc
index 2d43d3801..b6241ec1a 100644
--- a/src/lib/cross_linux.cc
+++ b/src/lib/cross_linux.cc
@@ -268,29 +268,6 @@ home_directory ()
return getenv("HOME");
}
-string
-command_and_read (string cmd)
-{
- FILE* pipe = popen (cmd.c_str(), "r");
- if (!pipe) {
- throw runtime_error ("popen failed");
- }
-
- string result;
- char buffer[128];
- try {
- while (fgets(buffer, sizeof(buffer), pipe)) {
- result += buffer;
- }
- } catch (...) {
- pclose (pipe);
- throw;
- }
-
- pclose (pipe);
- return result;
-}
-
/** @return true if this process is a 32-bit one running on a 64-bit-capable OS */
bool
running_32_on_64 ()