summaryrefslogtreecommitdiff
path: root/src/lib
diff options
context:
space:
mode:
authorCarl Hetherington <cth@carlh.net>2021-12-02 23:34:07 +0100
committerCarl Hetherington <cth@carlh.net>2021-12-03 21:19:28 +0100
commitd9f4ffe3c6e9431ad2d875bb5140e8640c970876 (patch)
treece9b946ff4eba04d70e31cd4e64c82b4024db9bd /src/lib
parentf1cd667ceea759b30c611bff810c72aacc32157e (diff)
Remove unused variables.
Diffstat (limited to 'src/lib')
-rw-r--r--src/lib/dcp_subtitle_content.cc1
-rw-r--r--src/lib/dcp_subtitle_decoder.cc1
-rw-r--r--src/lib/film.cc2
-rw-r--r--src/lib/image.cc5
-rw-r--r--src/lib/log_entry.cc1
5 files changed, 0 insertions, 10 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<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);
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<dcp::SubtitleString> s;
- list<dcp::SubtitleImage> 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<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));
}
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_(": ");
}