[gegl] gcut: remove unused non-frame api
- From: Øyvind Kolås <ok src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gegl] gcut: remove unused non-frame api
- Date: Thu, 27 Jul 2017 18:24:18 +0000 (UTC)
commit c4f50d5b41d6a4d73357f3eb34d33796a029a552
Author: Øyvind Kolås <pippin gimp org>
Date: Mon Jul 24 21:16:46 2017 +0200
gcut: remove unused non-frame api
gcut/gcut.c | 10 +---------
gcut/gcut.h | 2 --
2 files changed, 1 insertions(+), 11 deletions(-)
---
diff --git a/gcut/gcut.c b/gcut/gcut.c
index b0d6062..ca8a5f1 100644
--- a/gcut/gcut.c
+++ b/gcut/gcut.c
@@ -477,11 +477,6 @@ void gcut_set_frame (GeglEDL *edl, int frame)
}
}
-void gcut_set_time (GeglEDL *edl, double seconds)
-{
- gcut_set_frame (edl, seconds * edl->fps);
-}
-
void gcut_set_fps (GeglEDL *edl, double fps)
{
edl->fps = fps;
@@ -494,10 +489,7 @@ int gcut_get_frame (GeglEDL *edl)
{
return edl->frame;
}
-double gcut_get_time (GeglEDL *edl)
-{
- return edl->frame / edl->fps;
-}
+
GeglAudioFragment *gcut_get_audio (GeglEDL *edl)
{
Clip * clip = edl_get_clip_for_frame (edl, edl->frame);
diff --git a/gcut/gcut.h b/gcut/gcut.h
index f60a56a..fbd3ce9 100644
--- a/gcut/gcut.h
+++ b/gcut/gcut.h
@@ -84,7 +84,6 @@ void gcut_set_fps (GeglEDL *edl,
double fps);
double gcut_get_fps (GeglEDL *edl);
int gcut_get_duration (GeglEDL *edl);
-double gcut_get_time (GeglEDL *edl);
void gcut_parse_line (GeglEDL *edl, const char *line);
GeglEDL *gcut_new_from_path (const char *path);
void gcut_load_path (GeglEDL *edl, const char *path);
@@ -93,7 +92,6 @@ GeglAudioFragment *gcut_get_audio (GeglEDL *edl);
Clip *gcut_get_clip (GeglEDL *edl, int frame, int *clip_frame_no);
void gcut_set_frame (GeglEDL *edl, int frame);
-void gcut_set_time (GeglEDL *edl, double seconds);
int gcut_get_frame (GeglEDL *edl);
char *gcut_serialize (GeglEDL *edl);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]