1
0
mirror of https://github.com/mpv-player/mpv synced 2025-02-11 01:17:28 +00:00

player/playloop: remove now unused get_percent_pos()

This commit is contained in:
Kacper Michajłow 2024-06-03 03:26:35 +02:00
parent 37127276cc
commit d70a0b4494
2 changed files with 0 additions and 8 deletions

View File

@ -591,7 +591,6 @@ double get_time_length(struct MPContext *mpctx);
double get_start_time(struct MPContext *mpctx, int dir);
double get_current_time(struct MPContext *mpctx);
double get_playback_time(struct MPContext *mpctx);
int get_percent_pos(struct MPContext *mpctx);
double get_current_pos_ratio(struct MPContext *mpctx, bool use_range);
int get_current_chapter(struct MPContext *mpctx);
char *chapter_display_name(struct MPContext *mpctx, int chapter);

View File

@ -570,13 +570,6 @@ double get_current_pos_ratio(struct MPContext *mpctx, bool use_range)
return ans;
}
// 0-100, -1 if unknown
int get_percent_pos(struct MPContext *mpctx)
{
double pos = get_current_pos_ratio(mpctx, false);
return pos < 0 ? -1 : (int)round(pos * 100);
}
// -2 is no chapters, -1 is before first chapter
int get_current_chapter(struct MPContext *mpctx)
{