Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/moses-smt/mosesdecoder.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHieu Hoang <hieu@hoang.co.uk>2014-06-08 20:07:12 +0400
committerHieu Hoang <hieu@hoang.co.uk>2014-06-08 20:07:12 +0400
commit1b667e3e24620fb55fb7f62d3d643455521cdcb4 (patch)
treec1afc773035c21de8e242437caf20c5f9ead1172 /phrase-extract
parentd68257c34d05ab278f2b043bb208403cb4e98872 (diff)
delete any mention of SAFE_GETLINE so it doesn't reappear
Diffstat (limited to 'phrase-extract')
-rw-r--r--phrase-extract/DomainFeature.cpp1
-rw-r--r--phrase-extract/ExtractionPhrasePair.cpp1
-rw-r--r--phrase-extract/SafeGetline.h35
-rw-r--r--phrase-extract/consolidate-main.cpp1
-rw-r--r--phrase-extract/consolidate-reverse-main.cpp1
-rw-r--r--phrase-extract/extract-main.cpp1
-rw-r--r--phrase-extract/extract-ordering-main.cpp1
-rw-r--r--phrase-extract/extract-rules-main.cpp1
-rw-r--r--phrase-extract/score-main.cpp1
-rw-r--r--phrase-extract/statistics-main.cpp1
10 files changed, 0 insertions, 44 deletions
diff --git a/phrase-extract/DomainFeature.cpp b/phrase-extract/DomainFeature.cpp
index 337364b1d..99f0713a7 100644
--- a/phrase-extract/DomainFeature.cpp
+++ b/phrase-extract/DomainFeature.cpp
@@ -2,7 +2,6 @@
#include "ExtractionPhrasePair.h"
#include "tables-core.h"
#include "InputFileStream.h"
-#include "SafeGetline.h"
using namespace std;
diff --git a/phrase-extract/ExtractionPhrasePair.cpp b/phrase-extract/ExtractionPhrasePair.cpp
index f70d106d1..2b26c2ad6 100644
--- a/phrase-extract/ExtractionPhrasePair.cpp
+++ b/phrase-extract/ExtractionPhrasePair.cpp
@@ -19,7 +19,6 @@
#include <sstream>
#include "ExtractionPhrasePair.h"
-#include "SafeGetline.h"
#include "tables-core.h"
#include "score.h"
#include "moses/Util.h"
diff --git a/phrase-extract/SafeGetline.h b/phrase-extract/SafeGetline.h
deleted file mode 100644
index 0e03b8468..000000000
--- a/phrase-extract/SafeGetline.h
+++ /dev/null
@@ -1,35 +0,0 @@
-/***********************************************************************
- Moses - factored phrase-based language decoder
- Copyright (C) 2010 University of Edinburgh
-
- This library is free software; you can redistribute it and/or
- modify it under the terms of the GNU Lesser General Public
- License as published by the Free Software Foundation; either
- version 2.1 of the License, or (at your option) any later version.
-
- This library is distributed in the hope that it will be useful,
- but WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- Lesser General Public License for more details.
-
- You should have received a copy of the GNU Lesser General Public
- License along with this library; if not, write to the Free Software
- Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
- ***********************************************************************/
-
-#pragma once
-#ifndef SAFE_GETLINE_INCLUDED_
-#define SAFE_GETLINE_INCLUDED_
-
-#define SAFE_GETLINE(_IS, _LINE, _SIZE, _DELIM, _FILE) { \
- _IS.getline(_LINE, _SIZE, _DELIM); \
- if(_IS.fail() && !_IS.bad() && !_IS.eof()) _IS.clear(); \
- if (_IS.gcount() == _SIZE-1) { \
- cerr << "Line too long! Buffer overflow. Delete lines >=" \
- << _SIZE << " chars or raise LINE_MAX_LENGTH in " << _FILE \
- << endl; \
- exit(1); \
- } \
- }
-
-#endif
diff --git a/phrase-extract/consolidate-main.cpp b/phrase-extract/consolidate-main.cpp
index c57cc7747..43d912b81 100644
--- a/phrase-extract/consolidate-main.cpp
+++ b/phrase-extract/consolidate-main.cpp
@@ -26,7 +26,6 @@
#include <cstring>
#include "tables-core.h"
-#include "SafeGetline.h"
#include "InputFileStream.h"
#include "OutputFileStream.h"
diff --git a/phrase-extract/consolidate-reverse-main.cpp b/phrase-extract/consolidate-reverse-main.cpp
index 891773418..ce59315b9 100644
--- a/phrase-extract/consolidate-reverse-main.cpp
+++ b/phrase-extract/consolidate-reverse-main.cpp
@@ -27,7 +27,6 @@
#include <cstring>
#include "tables-core.h"
-#include "SafeGetline.h"
#include "InputFileStream.h"
using namespace std;
diff --git a/phrase-extract/extract-main.cpp b/phrase-extract/extract-main.cpp
index 698599a10..fe3d99cd2 100644
--- a/phrase-extract/extract-main.cpp
+++ b/phrase-extract/extract-main.cpp
@@ -19,7 +19,6 @@
#include <set>
#include <vector>
-#include "SafeGetline.h"
#include "SentenceAlignment.h"
#include "tables-core.h"
#include "InputFileStream.h"
diff --git a/phrase-extract/extract-ordering-main.cpp b/phrase-extract/extract-ordering-main.cpp
index 78132d4fd..b418ba24d 100644
--- a/phrase-extract/extract-ordering-main.cpp
+++ b/phrase-extract/extract-ordering-main.cpp
@@ -19,7 +19,6 @@
#include <set>
#include <vector>
-#include "SafeGetline.h"
#include "SentenceAlignment.h"
#include "tables-core.h"
#include "InputFileStream.h"
diff --git a/phrase-extract/extract-rules-main.cpp b/phrase-extract/extract-rules-main.cpp
index 30963f32b..592946b0d 100644
--- a/phrase-extract/extract-rules-main.cpp
+++ b/phrase-extract/extract-rules-main.cpp
@@ -39,7 +39,6 @@
#include "Hole.h"
#include "HoleCollection.h"
#include "RuleExist.h"
-#include "SafeGetline.h"
#include "SentenceAlignmentWithSyntax.h"
#include "SyntaxTree.h"
#include "tables-core.h"
diff --git a/phrase-extract/score-main.cpp b/phrase-extract/score-main.cpp
index dfb5103f4..3ab6e2fd3 100644
--- a/phrase-extract/score-main.cpp
+++ b/phrase-extract/score-main.cpp
@@ -29,7 +29,6 @@
#include <vector>
#include <algorithm>
-#include "SafeGetline.h"
#include "ScoreFeature.h"
#include "tables-core.h"
#include "ExtractionPhrasePair.h"
diff --git a/phrase-extract/statistics-main.cpp b/phrase-extract/statistics-main.cpp
index f1563dc05..9d814ed76 100644
--- a/phrase-extract/statistics-main.cpp
+++ b/phrase-extract/statistics-main.cpp
@@ -12,7 +12,6 @@
#include <time.h>
#include "AlignmentPhrase.h"
-#include "SafeGetline.h"
#include "tables-core.h"
#include "InputFileStream.h"