summaryrefslogtreecommitdiff
path: root/decoder
diff options
context:
space:
mode:
authorChris Dyer <redpony@gmail.com>2014-10-25 14:28:37 -0400
committerChris Dyer <redpony@gmail.com>2014-10-25 14:28:37 -0400
commite02b6af6b7cd8b224b1082123df8969532f4ce07 (patch)
tree92e308bbb2c1162175f77d4cedbc914ce65b62e5 /decoder
parent13d3dd3a8dca40c3ce70c2b117964ca3bfa5f971 (diff)
remove unused arg
Diffstat (limited to 'decoder')
-rw-r--r--decoder/decoder.cc8
-rw-r--r--decoder/forest_writer.cc2
-rw-r--r--decoder/forest_writer.h2
3 files changed, 6 insertions, 6 deletions
diff --git a/decoder/decoder.cc b/decoder/decoder.cc
index f8214f5f..737201e7 100644
--- a/decoder/decoder.cc
+++ b/decoder/decoder.cc
@@ -934,10 +934,10 @@ bool DecoderImpl::Decode(const string& input, DecoderObserver* o) {
if (!succeeded) abort();
}
HG::Union(forest, &new_hg);
- bool succeeded = writer.Write(new_hg, false);
+ bool succeeded = writer.Write(new_hg);
if (!succeeded) abort();
} else {
- bool succeeded = writer.Write(forest, false);
+ bool succeeded = writer.Write(forest);
if (!succeeded) abort();
}
}
@@ -1027,10 +1027,10 @@ bool DecoderImpl::Decode(const string& input, DecoderObserver* o) {
if (!succeeded) abort();
}
HG::Union(forest, &new_hg);
- bool succeeded = writer.Write(new_hg, false);
+ bool succeeded = writer.Write(new_hg);
if (!succeeded) abort();
} else {
- bool succeeded = writer.Write(forest, false);
+ bool succeeded = writer.Write(forest);
if (!succeeded) abort();
}
}
diff --git a/decoder/forest_writer.cc b/decoder/forest_writer.cc
index c072e599..cc9094d7 100644
--- a/decoder/forest_writer.cc
+++ b/decoder/forest_writer.cc
@@ -13,7 +13,7 @@ using namespace std;
ForestWriter::ForestWriter(const std::string& path, int num) :
fname_(path + '/' + boost::lexical_cast<string>(num) + ".bin.gz"), used_(false) {}
-bool ForestWriter::Write(const Hypergraph& forest, bool minimal_rules) {
+bool ForestWriter::Write(const Hypergraph& forest) {
assert(!used_);
used_ = true;
cerr << " Writing forest to " << fname_ << endl;
diff --git a/decoder/forest_writer.h b/decoder/forest_writer.h
index 4d28de77..54e83470 100644
--- a/decoder/forest_writer.h
+++ b/decoder/forest_writer.h
@@ -7,7 +7,7 @@ class Hypergraph;
struct ForestWriter {
ForestWriter(const std::string& path, int num);
- bool Write(const Hypergraph& forest, bool minimal_rules);
+ bool Write(const Hypergraph& forest);
const std::string fname_;
bool used_;