X-Git-Url: https://git.lttng.org/?p=lttng-tools.git;a=blobdiff_plain;f=ltt-sessiond%2Fsession.c;h=f355303365590dc467ccc94f069f348527fc6f32;hp=be820ee552dace6d6c5df188b8d8dee9e2c63681;hb=f10719180ada8b6aec080a8f81aeae1b673edbb8;hpb=fec07047f5911e611d7b0d0edf082f9c1b013cdb diff --git a/ltt-sessiond/session.c b/ltt-sessiond/session.c index be820ee55..f35530336 100644 --- a/ltt-sessiond/session.c +++ b/ltt-sessiond/session.c @@ -83,35 +83,6 @@ static void del_session_list(struct ltt_session *ls) } } -/* - * find_session_by_uuid - * - * Return a ltt_session structure ptr that matches the uuid. - */ -struct ltt_session *find_session_by_uuid(uuid_t session_id) -{ - int found = 0; - struct ltt_session *iter; - - /* Sanity check for NULL session_id */ - if (uuid_is_null(session_id)) { - goto end; - } - - cds_list_for_each_entry(iter, <t_session_list.head, list) { - if (uuid_compare(iter->uuid, session_id) == 0) { - found = 1; - break; - } - } - -end: - if (!found) { - iter = NULL; - } - return iter; -} - /* * find_session_by_name * @@ -223,9 +194,6 @@ int create_session(char *name, char *path) goto error; } - /* UUID generation */ - uuid_generate(new_session->uuid); - /* * Set consumer (identifier) to 0. This means that there is * NO consumer attach to that session yet.