Remove unused code.
authorCarl Hetherington <cth@carlh.net>
Tue, 23 Dec 2014 00:03:11 +0000 (00:03 +0000)
committerCarl Hetherington <cth@carlh.net>
Tue, 23 Dec 2014 00:03:11 +0000 (00:03 +0000)
src/lib/content.h
src/lib/dcp_subtitle_content.cc
src/lib/dcp_subtitle_content.h
src/lib/ffmpeg_content.cc
src/lib/ffmpeg_content.h
src/lib/sndfile_content.cc
src/lib/subrip_content.cc
src/lib/subrip_content.h
src/lib/video_content.cc
src/lib/video_content.h

index e383f9ff0a599e52e5ba6a97a4083f7cec773ea3..a3e6da988cddad6fa335a89d60814c1f69f56b83 100644 (file)
@@ -80,7 +80,6 @@ public:
         */
        virtual std::string technical_summary () const;
        
-       virtual std::string information () const = 0;
        virtual void as_xml (xmlpp::Node *) const;
        virtual DCPTime full_length () const = 0;
        virtual std::string identifier () const;
index 351d8c26ef8e07b958b2c2323f7a2893ede12b99..e814946f4ca1e58d6ee7fcd4791ae25713838782 100644 (file)
@@ -84,12 +84,6 @@ DCPSubtitleContent::technical_summary () const
        return Content::technical_summary() + " - " + _("DCP XML subtitles");
 }
       
-string
-DCPSubtitleContent::information () const
-{
-
-}
-
 void
 DCPSubtitleContent::as_xml (xmlpp::Node* node) const
 {
index 551dafd15e5f5ed25ff23d64976eac626b8ef2a9..e1a0b64908dfa9e3126b97dccc889262da7cc1c9 100644 (file)
@@ -29,7 +29,6 @@ public:
        void examine (boost::shared_ptr<Job>, bool calculate_digest);
        std::string summary () const;
        std::string technical_summary () const;
-       std::string information () const;
        void as_xml (xmlpp::Node *) const;
        DCPTime full_length () const;
 
index 740efdc299fadc9131692581b91004b5a4b1dc9e..66f78d541579f9422d9adf7c9646a51500d69622 100644 (file)
@@ -228,21 +228,6 @@ FFmpegContent::technical_summary () const
                        );
 }
 
-string
-FFmpegContent::information () const
-{
-       if (video_length() == ContentTime (0) || video_frame_rate() == 0) {
-               return "";
-       }
-       
-       SafeStringStream s;
-       
-       s << String::compose (_("%1 frames; %2 frames per second"), video_length_after_3d_combine().frames (video_frame_rate()), video_frame_rate()) << "\n";
-       s << VideoContent::information ();
-
-       return s.str ();
-}
-
 void
 FFmpegContent::set_subtitle_stream (shared_ptr<FFmpegSubtitleStream> s)
 {
index 8203b7ac18d01b4303629ccb7c6f888c18d81ecf..2831c2acfcb0514496dd00339841c2b3228163da 100644 (file)
@@ -59,7 +59,6 @@ public:
        void examine (boost::shared_ptr<Job>, bool calculate_digest);
        std::string summary () const;
        std::string technical_summary () const;
-       std::string information () const;
        void as_xml (xmlpp::Node *) const;
        DCPTime full_length () const;
 
index 3c377d644f488bc6f6f9f922b68ffd172b3db6b6..e0b7cc10cc19d55932fe1ceffdbb7b2314ef3ea5 100644 (file)
@@ -72,25 +72,6 @@ SndfileContent::technical_summary () const
                + " - sndfile";
 }
 
-string
-SndfileContent::information () const
-{
-       if (_audio_frame_rate == 0) {
-               return "";
-       }
-       
-       SafeStringStream s;
-
-       s << String::compose (
-               _("%1 channels, %2kHz, %3 samples"),
-               audio_channels(),
-               audio_frame_rate() / 1000.0,
-               audio_length().frames (audio_frame_rate ())
-               );
-       
-       return s.str ();
-}
-
 bool
 SndfileContent::valid_file (boost::filesystem::path f)
 {
index f4dd427f347f220a3b7954c32af852ddb991259c..819bca32199422cd1750b61c338789401d8fd6ce 100644 (file)
@@ -77,12 +77,6 @@ SubRipContent::technical_summary () const
        return Content::technical_summary() + " - " + _("SubRip subtitles");
 }
 
-string
-SubRipContent::information () const
-{
-       
-}
-       
 void
 SubRipContent::as_xml (xmlpp::Node* node) const
 {
index 0202e21d7f32eb782a81989cc27947c75ea748fe..4321ecb6ad87f4c285579722197eb96270e987a2 100644 (file)
@@ -33,7 +33,6 @@ public:
        void examine (boost::shared_ptr<Job>, bool calculate_digest);
        std::string summary () const;
        std::string technical_summary () const;
-       std::string information () const;
        void as_xml (xmlpp::Node *) const;
        DCPTime full_length () const;
 
index c50d466a1f703f083a51a01d72440d0e0642d315..1a03c2af2b04da6748a8f42845ca78569e019919 100644 (file)
@@ -249,30 +249,6 @@ VideoContent::take_from_video_examiner (shared_ptr<VideoExaminer> d)
        signal_changed (ContentProperty::LENGTH);
 }
 
-
-string
-VideoContent::information () const
-{
-       if (video_size().width == 0 || video_size().height == 0) {
-               return "";
-       }
-       
-       SafeStringStream s;
-
-       s << String::compose (
-               _("%1x%2 pixels (%3:1)"),
-               video_size().width,
-               video_size().height,
-               setprecision (3), video_size().ratio ()
-               );
-
-       if (sample_aspect_ratio ()) {
-               s << String::compose (_(" sample aspect ratio %1:1"), sample_aspect_ratio().get ());
-       }
-       
-       return s.str ();
-}
-
 void
 VideoContent::set_left_crop (int c)
 {
index 9e5c1362f94d73edfbe1d5d5492ad7354fbac5b1..3209261902d2bb497e9ad6155c83e2e853dd06aa 100644 (file)
@@ -51,7 +51,6 @@ public:
 
        void as_xml (xmlpp::Node *) const;
        std::string technical_summary () const;
-       virtual std::string information () const;
        virtual std::string identifier () const;
 
        ContentTime video_length () const {