summaryrefslogtreecommitdiff
path: root/kernel/yosys.cc
diff options
context:
space:
mode:
authorClifford Wolf <clifford@clifford.at>2014-10-15 01:12:53 +0200
committerClifford Wolf <clifford@clifford.at>2014-10-15 01:12:53 +0200
commitc3e9922b5d871269bf4ee33da24318d3b5199ac3 (patch)
tree74d252566f1ab890069e3e37b5b0a5776c5a5e4a /kernel/yosys.cc
parentcf85aab62f961c905e4691fde59af774053d3d58 (diff)
Replaced readsome() with read() and gcount()
Diffstat (limited to 'kernel/yosys.cc')
-rw-r--r--kernel/yosys.cc16
1 files changed, 0 insertions, 16 deletions
diff --git a/kernel/yosys.cc b/kernel/yosys.cc
index e50bfcbe..ba3049c5 100644
--- a/kernel/yosys.cc
+++ b/kernel/yosys.cc
@@ -172,22 +172,6 @@ bool patmatch(const char *pattern, const char *string)
return false;
}
-int readsome(std::istream &f, char *s, int n)
-{
- int rc = f.readsome(s, n);
-
- // win32 sometimes returns 0 on a non-empty stream..
- if (rc == 0) {
- int c = f.get();
- if (c != EOF) {
- *s = c;
- rc = 1;
- }
- }
-
- return rc;
-}
-
int run_command(const std::string &command, std::function<void(const std::string&)> process_line)
{
if (!process_line)