diff options
| author | Carl Hetherington <cth@carlh.net> | 2025-12-31 23:06:11 +0100 |
|---|---|---|
| committer | Carl Hetherington <cth@carlh.net> | 2025-12-31 23:06:11 +0100 |
| commit | c26a41eb7b90f33a48be2c7d7d01e54eb446eb2a (patch) | |
| tree | 8ece6c91423f0741f4ba64313b75ecc5f8433faf /src/lib | |
| parent | eb37cf6ee5cc7f186af98c75cf6649932b4fec7d (diff) | |
Remove now-unused Player::progress().
Diffstat (limited to 'src/lib')
| -rw-r--r-- | src/lib/player.cc | 14 | ||||
| -rw-r--r-- | src/lib/player.h | 1 |
2 files changed, 0 insertions, 15 deletions
diff --git a/src/lib/player.cc b/src/lib/player.cc index 58db43102..12a1b39cd 100644 --- a/src/lib/player.cc +++ b/src/lib/player.cc @@ -1648,17 +1648,3 @@ Player::set_disable_audio_processor() { _disable_audio_processor = true; } - - -float -Player::progress() const -{ - auto film = _film.lock(); - DCPOMATIC_ASSERT(film); - - shared_ptr<Piece> earliest_content; - optional<DCPTime> earliest_time; - std::tie(earliest_content, earliest_time) = earliest_piece_and_time(); - - return static_cast<float>(earliest_time.get_value_or(film->length()).get()) / film->length().get(); -} diff --git a/src/lib/player.h b/src/lib/player.h index edcbb1198..4a1cf5f55 100644 --- a/src/lib/player.h +++ b/src/lib/player.h @@ -91,7 +91,6 @@ public: /** @return true when playback is finished, and there is no more data to come */ bool pass(); void seek(dcpomatic::DCPTime time, bool accurate); - float progress() const; std::vector<std::shared_ptr<dcpomatic::Font>> get_subtitle_fonts(); |
