Remove dependency on libuuid
[lttng-tools.git] / ltt-sessiond / session.c
index be820ee552dace6d6c5df188b8d8dee9e2c63681..f355303365590dc467ccc94f069f348527fc6f32 100644 (file)
@@ -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, &ltt_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.
This page took 0.023083 seconds and 4 git commands to generate.