Commit f6224af6 authored by Josh Coalson's avatar Josh Coalson
Browse files

*::State::resolved_as_cstring() is now inlined

parent 43b0ddc0
......@@ -35,19 +35,6 @@
namespace FLAC {
namespace Decoder {
const char *File::State::resolved_as_cstring(const File &decoder) const
{
if(state_ == ::FLAC__FILE_DECODER_SEEKABLE_STREAM_DECODER_ERROR) {
FLAC::Decoder::SeekableStream::State state__ = decoder.get_seekable_stream_decoder_state();
if(state__ == ::FLAC__SEEKABLE_STREAM_DECODER_STREAM_DECODER_ERROR)
return decoder.get_stream_decoder_state().as_cstring();
else
return state__.as_cstring();
}
else
return as_cstring();
}
File::File():
decoder_(::FLAC__file_decoder_new())
{ }
......
......@@ -35,24 +35,6 @@
namespace FLAC {
namespace Encoder {
const char *File::State::resolved_as_cstring(const File &encoder) const
{
if(state_ == ::FLAC__FILE_ENCODER_SEEKABLE_STREAM_ENCODER_ERROR) {
FLAC::Encoder::SeekableStream::State state__ = encoder.get_seekable_stream_encoder_state();
if(state__ == ::FLAC__SEEKABLE_STREAM_ENCODER_STREAM_ENCODER_ERROR) {
FLAC::Encoder::Stream::State state___ = encoder.get_stream_encoder_state();
if(state___ == ::FLAC__STREAM_ENCODER_VERIFY_DECODER_ERROR)
return encoder.get_verify_decoder_state().as_cstring();
else
return state___.as_cstring();
}
else
return state__.as_cstring();
}
else
return as_cstring();
}
File::File():
encoder_(::FLAC__file_encoder_new())
{ }
......
......@@ -35,14 +35,6 @@
namespace FLAC {
namespace Decoder {
const char *SeekableStream::State::resolved_as_cstring(const SeekableStream &decoder) const
{
if(state_ == ::FLAC__SEEKABLE_STREAM_DECODER_STREAM_DECODER_ERROR)
return decoder.get_stream_decoder_state().as_cstring();
else
return as_cstring();
}
SeekableStream::SeekableStream():
decoder_(::FLAC__seekable_stream_decoder_new())
{ }
......
......@@ -35,20 +35,6 @@
namespace FLAC {
namespace Encoder {
const char *SeekableStream::State::resolved_as_cstring(const SeekableStream &encoder) const
{
if(state_ == ::FLAC__SEEKABLE_STREAM_ENCODER_STREAM_ENCODER_ERROR) {
FLAC::Encoder::Stream::State state__ = encoder.get_stream_encoder_state();
if(state__ == ::FLAC__STREAM_ENCODER_VERIFY_DECODER_ERROR)
return encoder.get_verify_decoder_state().as_cstring();
else
return state__.as_cstring();
}
else
return as_cstring();
}
SeekableStream::SeekableStream():
encoder_(::FLAC__seekable_stream_encoder_new())
{ }
......
......@@ -35,11 +35,6 @@
namespace FLAC {
namespace Decoder {
const char *Stream::State::resolved_as_cstring(const Stream &) const
{
return as_cstring();
}
Stream::Stream():
decoder_(::FLAC__stream_decoder_new())
{ }
......
......@@ -35,14 +35,6 @@
namespace FLAC {
namespace Encoder {
const char *Stream::State::resolved_as_cstring(const Stream &encoder) const
{
if(state_ == ::FLAC__STREAM_ENCODER_VERIFY_DECODER_ERROR)
return encoder.get_verify_decoder_state().as_cstring();
else
return as_cstring();
}
Stream::Stream():
encoder_(::FLAC__stream_encoder_new())
{ }
......
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