Skip to content

Commit be5fe11

Browse files
author
Clement Champetier
committed
Codec classes: remove unnecessary constructor from an ICodec
1 parent f2d9a6b commit be5fe11

File tree

6 files changed

+0
-18
lines changed

6 files changed

+0
-18
lines changed

src/AvTranscoder/codec/AudioCodec.cpp

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -20,11 +20,6 @@ AudioCodec::AudioCodec( const ECodecType type, AVCodecContext& avCodecContext )
2020
{
2121
}
2222

23-
AudioCodec::AudioCodec( const ICodec& codec )
24-
: ICodec( codec )
25-
{
26-
}
27-
2823
AudioFrameDesc AudioCodec::getAudioFrameDesc() const
2924
{
3025
assert( _avCodecContext != NULL );

src/AvTranscoder/codec/AudioCodec.hpp

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,6 @@ class AvExport AudioCodec : public ICodec
1313
AudioCodec( const ECodecType type, const std::string& codecName = "" );
1414
AudioCodec( const ECodecType type, const AVCodecID codecId );
1515
AudioCodec( const ECodecType type, AVCodecContext& avCodecContext );
16-
AudioCodec( const ICodec& codec );
1716

1817
AudioFrameDesc getAudioFrameDesc() const;
1918

src/AvTranscoder/codec/DataCodec.cpp

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -18,9 +18,4 @@ DataCodec::DataCodec( const ECodecType type, AVCodecContext& avCodecContext )
1818
{
1919
}
2020

21-
DataCodec::DataCodec( const ICodec& codec )
22-
: ICodec( codec )
23-
{
24-
}
25-
2621
}

src/AvTranscoder/codec/DataCodec.hpp

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,6 @@ class AvExport DataCodec : public ICodec
1212
DataCodec( const ECodecType type, const std::string& codecName = "" );
1313
DataCodec( const ECodecType type, const AVCodecID codecId );
1414
DataCodec( const ECodecType type, AVCodecContext& avCodecContext );
15-
DataCodec( const ICodec& codec );
1615
};
1716

1817
}

src/AvTranscoder/codec/VideoCodec.cpp

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -20,11 +20,6 @@ VideoCodec::VideoCodec( const ECodecType type, AVCodecContext& avCodecContext )
2020
{
2121
}
2222

23-
VideoCodec::VideoCodec( const ICodec& codec )
24-
: ICodec( codec )
25-
{
26-
}
27-
2823
VideoFrameDesc VideoCodec::getVideoFrameDesc() const
2924
{
3025
assert( _avCodecContext != NULL );

src/AvTranscoder/codec/VideoCodec.hpp

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,6 @@ class AvExport VideoCodec : public ICodec
1515
VideoCodec( const ECodecType type, const std::string& codecName = "" );
1616
VideoCodec( const ECodecType type, const AVCodecID codecId );
1717
VideoCodec( const ECodecType type, AVCodecContext& avCodecContext );
18-
VideoCodec( const ICodec& codec );
1918

2019
VideoFrameDesc getVideoFrameDesc() const;
2120
std::pair< size_t, size_t > getTimeBase() const;

0 commit comments

Comments
 (0)