Commit f7d62285 authored by Hugo Beauzée-Luyssen's avatar Hugo Beauzée-Luyssen

structures: Do not generate constructor if they are not to be used

parent b9fc4eb9
...@@ -35,13 +35,6 @@ namespace VLC { ...@@ -35,13 +35,6 @@ namespace VLC {
class ModuleDescription class ModuleDescription
{ {
public: public:
/** Not to be used
*/
ModuleDescription()
{
throw std::logic_error("This constructor shouldn't be called.");
}
const std::string& name() const; const std::string& name() const;
const std::string& shortname() const; const std::string& shortname() const;
const std::string& longname() const; const std::string& longname() const;
...@@ -60,13 +53,6 @@ private: ...@@ -60,13 +53,6 @@ private:
class MediaTrackInfo class MediaTrackInfo
{ {
public: public:
/** Not to be used
*/
MediaTrackInfo()
{
throw std::logic_error("This constructor shouldn't be called.");
}
uint32_t codec() const; uint32_t codec() const;
int id() const; int id() const;
libvlc_track_type_t type() const; libvlc_track_type_t type() const;
...@@ -94,13 +80,6 @@ private: ...@@ -94,13 +80,6 @@ private:
class AudioOutputDescription class AudioOutputDescription
{ {
public: public:
/** Not to be used
*/
AudioOutputDescription()
{
throw std::logic_error("This constructor shouldn't be called.");
}
const std::string& name() const; const std::string& name() const;
const std::string& description() const; const std::string& description() const;
...@@ -115,13 +94,6 @@ private: ...@@ -115,13 +94,6 @@ private:
class TrackDescription class TrackDescription
{ {
public: public:
/** Not to be used
*/
TrackDescription()
{
throw std::logic_error("This constructor shouldn't be called.");
}
int id() const; int id() const;
const std::string& name() const; const std::string& name() const;
......
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