From d9f4ffe3c6e9431ad2d875bb5140e8640c970876 Mon Sep 17 00:00:00 2001 From: Carl Hetherington Date: Thu, 2 Dec 2021 23:34:07 +0100 Subject: [PATCH] Remove unused variables. --- src/lib/dcp_subtitle_content.cc | 1 - src/lib/dcp_subtitle_decoder.cc | 1 - src/lib/film.cc | 2 -- src/lib/image.cc | 5 ----- src/lib/log_entry.cc | 1 - src/wx/subtitle_appearance_dialog.cc | 1 - 6 files changed, 11 deletions(-) diff --git a/src/lib/dcp_subtitle_content.cc b/src/lib/dcp_subtitle_content.cc index 3bae6e88f..8ec602046 100644 --- a/src/lib/dcp_subtitle_content.cc +++ b/src/lib/dcp_subtitle_content.cc @@ -59,7 +59,6 @@ DCPSubtitleContent::examine (shared_ptr film, shared_ptr job) auto sc = load (path(0)); - auto iop = dynamic_pointer_cast(sc); auto smpte = dynamic_pointer_cast(sc); if (smpte) { set_video_frame_rate (smpte->edit_rate().numerator); diff --git a/src/lib/dcp_subtitle_decoder.cc b/src/lib/dcp_subtitle_decoder.cc index 169a41751..50b2da0d0 100644 --- a/src/lib/dcp_subtitle_decoder.cc +++ b/src/lib/dcp_subtitle_decoder.cc @@ -120,7 +120,6 @@ DCPSubtitleDecoder::pass () */ list s; - list i; auto const p = content_time_period (*_next); while (_next != _subtitles.end () && content_time_period (*_next) == p) { diff --git a/src/lib/film.cc b/src/lib/film.cc index d0f0106c4..5673a6615 100644 --- a/src/lib/film.cc +++ b/src/lib/film.cc @@ -557,7 +557,6 @@ void Film::write_template (boost::filesystem::path path) const { boost::filesystem::create_directories (path.parent_path()); - shared_ptr 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)); } diff --git a/src/lib/image.cc b/src/lib/image.cc index a4e04bb62..286cd19ac 100644 --- a/src/lib/image.cc +++ b/src/lib/image.cc @@ -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: { diff --git a/src/lib/log_entry.cc b/src/lib/log_entry.cc index 2980e438b..54fd5c82f 100644 --- a/src/lib/log_entry.cc +++ b/src/lib/log_entry.cc @@ -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_(": "); } diff --git a/src/wx/subtitle_appearance_dialog.cc b/src/wx/subtitle_appearance_dialog.cc index b5ab8c2db..36aaf2eff 100644 --- a/src/wx/subtitle_appearance_dialog.cc +++ b/src/wx/subtitle_appearance_dialog.cc @@ -333,7 +333,6 @@ SubtitleAppearanceDialog::active_jobs_changed (optional 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)); -- 2.30.2