From b88176dc4fd53480e77d601ff63bf5300cf8fc7f Mon Sep 17 00:00:00 2001 From: Chris Dyer Date: Thu, 9 Oct 2014 14:26:12 -0400 Subject: fix header names in decoder/ --- decoder/forest_writer.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'decoder/forest_writer.h') diff --git a/decoder/forest_writer.h b/decoder/forest_writer.h index 819a8940..4d28de77 100644 --- a/decoder/forest_writer.h +++ b/decoder/forest_writer.h @@ -1,5 +1,5 @@ -#ifndef _FOREST_WRITER_H_ -#define _FOREST_WRITER_H_ +#ifndef FOREST_WRITER_H_ +#define FOREST_WRITER_H_ #include -- cgit v1.2.3 From e02b6af6b7cd8b224b1082123df8969532f4ce07 Mon Sep 17 00:00:00 2001 From: Chris Dyer Date: Sat, 25 Oct 2014 14:28:37 -0400 Subject: remove unused arg --- decoder/decoder.cc | 8 ++++---- decoder/forest_writer.cc | 2 +- decoder/forest_writer.h | 2 +- 3 files changed, 6 insertions(+), 6 deletions(-) (limited to 'decoder/forest_writer.h') 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(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_; -- cgit v1.2.3