From: Mathieu Desnoyers Date: Fri, 24 Aug 2012 01:19:47 +0000 (-0400) Subject: Fix: API: remove unsupported BT_SEEK_END from API X-Git-Tag: v1.0.0-rc5~7 X-Git-Url: http://git.efficios.com/?p=babeltrace.git;a=commitdiff_plain;h=2af75f65e584f99e299e6d79af9c1796c5a00316 Fix: API: remove unsupported BT_SEEK_END from API Signed-off-by: Mathieu Desnoyers --- diff --git a/include/babeltrace/iterator.h b/include/babeltrace/iterator.h index e658eeec..22dabb47 100644 --- a/include/babeltrace/iterator.h +++ b/include/babeltrace/iterator.h @@ -54,7 +54,6 @@ struct bt_iter_pos { BT_SEEK_RESTORE, /* uses u.restore */ BT_SEEK_CUR, BT_SEEK_BEGIN, - BT_SEEK_END, BT_SEEK_LAST, } type; union { diff --git a/lib/iterator.c b/lib/iterator.c index a06d66bd..b57be035 100644 --- a/lib/iterator.c +++ b/lib/iterator.c @@ -625,7 +625,6 @@ static int babeltrace_filestream_seek(struct ctf_file_stream *file_stream, break; case BT_SEEK_TIME: case BT_SEEK_RESTORE: - case BT_SEEK_END: default: assert(0); /* Not yet defined */ }