diff options
author | Hieu Hoang <hieuhoang@gmail.com> | 2014-12-30 16:50:00 +0300 |
---|---|---|
committer | Hieu Hoang <hieuhoang@gmail.com> | 2014-12-30 16:50:00 +0300 |
commit | e92c2c0e0c045763a062b2956c900819f8484af0 (patch) | |
tree | 778a344f2d5ed816c118937cd28bdc0dcaf35918 | |
parent | ba166f109cc1bda482e32ba490905d769dc1b9ae (diff) |
delete unused methods from IOWrapper
-rw-r--r-- | moses/IOWrapper.cpp | 14 | ||||
-rw-r--r-- | moses/IOWrapper.h | 4 |
2 files changed, 0 insertions, 18 deletions
diff --git a/moses/IOWrapper.cpp b/moses/IOWrapper.cpp index 950fdbfbd..a5a2e1fdb 100644 --- a/moses/IOWrapper.cpp +++ b/moses/IOWrapper.cpp @@ -399,20 +399,6 @@ void IOWrapper::OutputAlignment(OutputCollector* collector, size_t lineNo , cons collector->Write(lineNo,out.str()); } -void IOWrapper::OutputAlignment(OutputCollector* collector, size_t lineNo , const Hypothesis *hypo) -{ - if (collector) { - std::vector<const Hypothesis *> edges; - const Hypothesis *currentHypo = hypo; - while (currentHypo) { - edges.push_back(currentHypo); - currentHypo = currentHypo->GetPrevHypo(); - } - - OutputAlignment(collector,lineNo, edges); - } -} - void IOWrapper::OutputAlignment(OutputCollector* collector, size_t lineNo , const TrellisPath &path) { if (collector) { diff --git a/moses/IOWrapper.h b/moses/IOWrapper.h index 377ca3cf6..445b87bb0 100644 --- a/moses/IOWrapper.h +++ b/moses/IOWrapper.h @@ -166,10 +166,6 @@ public: // CHART // phrase-based - void OutputPassthroughInformation(std::string& passthrough, const Moses::Hypothesis* hypo); - void OutputPassthroughInformation(std::ostream& os, const Moses::Hypothesis* hypo); - - void OutputAlignment(Moses::OutputCollector* collector, size_t lineNo, const Moses::Hypothesis *hypo); void OutputAlignment(Moses::OutputCollector* collector, size_t lineNo, const Moses::TrellisPath &path); void OutputAlignment(OutputCollector* collector, size_t lineNo , const std::vector<const Hypothesis *> &edges); |