removed setParseFlags from the D-binding

This commit is contained in:
Marenz 2011-06-02 14:58:39 +02:00
parent c5cfa7e119
commit c0b78df2ba
1 changed files with 1 additions and 19 deletions

View File

@ -159,25 +159,6 @@ struct ParseState
return psyc_parse(this, &oper, cast(String*) &name, cast(String*) &value);
}
/**
* Change parse flags in state
*
* Params:
* state = Pointer to the state struct that should be initialized.
* flags = Flags to be set for the parser, see psycParseFlag.
*
* See_Also: psyc_initParseState psycParseFlag
*/
void setParseFlags (ParseFlag flags)
{
this.flags = flags;
if (flags & ParseFlag.START_AT_CONTENT)
this.part = Part.CONTENT;
else
this.part = Part.ROUTING;
}
/**
* Sets a new buffer in the parser state struct with data to be parsed.
*
@ -265,6 +246,7 @@ struct ParseState
void getRemainingBuffer ( ref ubyte[] buf )
{
buf = this.buffer.ptr[cursor .. cursor + getRemainingLength()];
}