Remove unused variables.
authorCarl Hetherington <cth@carlh.net>
Thu, 2 Dec 2021 22:34:07 +0000 (23:34 +0100)
committerCarl Hetherington <cth@carlh.net>
Fri, 3 Dec 2021 20:19:28 +0000 (21:19 +0100)
src/lib/dcp_subtitle_content.cc
src/lib/dcp_subtitle_decoder.cc
src/lib/film.cc
src/lib/image.cc
src/lib/log_entry.cc
src/wx/subtitle_appearance_dialog.cc

index 3bae6e88fb572e686c418995759adcc2d698752f..8ec602046cd690f00522ea8a34c15f1fa4b19526 100644 (file)
@@ -59,7 +59,6 @@ DCPSubtitleContent::examine (shared_ptr<const Film> film, shared_ptr<Job> job)
 
        auto sc = load (path(0));
 
-       auto iop = dynamic_pointer_cast<dcp::InteropSubtitleAsset>(sc);
        auto smpte = dynamic_pointer_cast<dcp::SMPTESubtitleAsset>(sc);
        if (smpte) {
                set_video_frame_rate (smpte->edit_rate().numerator);
index 169a41751a6860929be63912d6356b040e42c695..50b2da0d07f8901a61ffa028f53b62c4414fe1f9 100644 (file)
@@ -120,7 +120,6 @@ DCPSubtitleDecoder::pass ()
        */
 
        list<dcp::SubtitleString> s;
-       list<dcp::SubtitleImage> i;
        auto const p = content_time_period (*_next);
 
        while (_next != _subtitles.end () && content_time_period (*_next) == p) {
index d0f0106c49b6fb0e2906b53468d76e3e71190e25..5673a661565cc8d851c6955f8fc02d24990143ce 100644 (file)
@@ -557,7 +557,6 @@ void
 Film::write_template (boost::filesystem::path path) const
 {
        boost::filesystem::create_directories (path.parent_path());
-       shared_ptr<xmlpp::Document> doc = metadata (false);
        metadata(false)->write_to_file_formatted(path.string());
 }
 
@@ -1101,7 +1100,6 @@ Film::isdcf_name (bool if_created_now) const
 string
 Film::dcp_name (bool if_created_now) const
 {
-       string unfiltered;
        if (use_isdcf_name()) {
                return careful_string_filter (isdcf_name (if_created_now));
        }
index a4e04bb626d5a146e0cd0405aa94eec850feb5c7..286cd19acf69dc4f9f3d390016f8bc242d769254 100644 (file)
@@ -1200,11 +1200,6 @@ operator== (Image const & a, Image const & b)
 void
 Image::fade (float f)
 {
-       /* U/V black value for 8-bit colour */
-       static int const eight_bit_uv =    (1 << 7) - 1;
-       /* U/V black value for 10-bit colour */
-       static uint16_t const ten_bit_uv = (1 << 9) - 1;
-
        switch (_pixel_format) {
        case AV_PIX_FMT_YUV420P:
        {
index 2980e438b084555d5718ddb52900355fc3e79280..54fd5c82fa742cd3f288b6a4c503684c0c8b8659 100644 (file)
@@ -62,7 +62,6 @@ LogEntry::get () const
                time_t const sec = _time.tv_sec;
                struct tm* t = localtime (&sec);
                strftime (buffer, 64, "%c", t);
-               string a (buffer);
                s += string(buffer) + N_(": ");
        }
 
index b5ab8c2db79777f9ab8bee2230782917c104442d..36aaf2eff03bc9910f3bf73cd36efabdd0949f43 100644 (file)
@@ -333,7 +333,6 @@ SubtitleAppearanceDialog::active_jobs_changed (optional<string> last)
 void
 SubtitleAppearanceDialog::add_colours ()
 {
-       auto colours = _stream->colours ();
        for (auto const& i: _stream->colours()) {
                auto from = new wxPanel(_colours_panel, wxID_ANY);
                from->SetBackgroundColour(wxColour(i.first.r, i.first.g, i.first.b, i.first.a));