diff options
author | Chris Dyer <redpony@gmail.com> | 2014-10-25 14:28:37 -0400 |
---|---|---|
committer | Chris Dyer <redpony@gmail.com> | 2014-10-25 14:28:37 -0400 |
commit | 7547aef823c9f41edf363af8c3dd23992ead6c68 (patch) | |
tree | 1854ab74ed387e3c815b4ec7b98f89f4f662724b /decoder | |
parent | 0c084411f82aa3f8639046be7df421e1c2ec4d3c (diff) |
remove unused arg
Diffstat (limited to 'decoder')
-rw-r--r-- | decoder/decoder.cc | 8 | ||||
-rw-r--r-- | decoder/forest_writer.cc | 2 | ||||
-rw-r--r-- | decoder/forest_writer.h | 2 |
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_; |