Commit 36ba22be authored by Brad King's avatar Brad King

ENH: Removed deprecated ParseStream method. Moved implementation to its...

ENH: Removed deprecated ParseStream method.  Moved implementation to its replacement method, ParseXML.
parent 8da8262c
......@@ -27,7 +27,7 @@
#define VTK_IOS_NOCREATE | ios::nocreate
#endif
vtkCxxRevisionMacro(vtkXMLParser, "1.7");
vtkCxxRevisionMacro(vtkXMLParser, "1.8");
vtkStandardNewMacro(vtkXMLParser);
//----------------------------------------------------------------------------
......@@ -35,7 +35,6 @@ vtkXMLParser::vtkXMLParser()
{
this->Stream = 0;
this->Parser = 0;
this->LegacyHack = 0;
this->FileName = 0;
this->InputString = 0;
}
......@@ -141,20 +140,6 @@ int vtkXMLParser::ParseXML()
return 0;
}
this->LegacyHack = 1;
int result = this->ParseStream();
if(this->LegacyHack)
{
vtkWarningMacro("The ParseStream() method has been deprectated and "
"will soon be removed. Use ParseXML() instead.");
}
return result;
}
//----------------------------------------------------------------------------
int vtkXMLParser::ParseStream()
{
this->LegacyHack = 0;
// Default stream parser just reads a block at a time.
istream& in = *(this->Stream);
const int bufferSize = 4096;
......
......@@ -84,9 +84,6 @@ protected:
// be replaced by subclasses to change how input is read.
virtual int ParseXML();
// Legacy method. Deprecated. Use ParseXML instead.
virtual int ParseStream();
// Called before each block of input is read from the stream to
// check if parsing is complete. Can be replaced by subclasses to
// change the terminating condition for parsing. Parsing always
......@@ -137,8 +134,6 @@ protected:
// routine.
static int IsSpace(char c);
int LegacyHack;
//BTX
friend void vtkXMLParserStartElement(void*, const char*, const char**);
friend void vtkXMLParserEndElement(void*, const char*);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment