Skip to content

Commit

Permalink
libpriv/origin: Stop caching unconfigured state
Browse files Browse the repository at this point in the history
All accessors are now backed by the treefile directly.
  • Loading branch information
jlebon authored and cgwalters committed Apr 26, 2022
1 parent b88871b commit c74ba6a
Showing 1 changed file with 0 additions and 6 deletions.
6 changes: 0 additions & 6 deletions src/libpriv/rpmostree-origin.cxx
Original file line number Diff line number Diff line change
Expand Up @@ -38,8 +38,6 @@ struct RpmOstreeOrigin

/* this is used for convenience while we migrate; we always sync back to the treefile */
GKeyFile *kf;

char *cached_unconfigured_state;
};

RpmOstreeOrigin *
Expand All @@ -59,7 +57,6 @@ rpmostree_origin_unref (RpmOstreeOrigin *origin)
if (origin->refcount > 0)
return;
g_key_file_unref (origin->kf);
g_free (origin->cached_unconfigured_state);
g_free (origin);
}

Expand Down Expand Up @@ -130,9 +127,6 @@ rpmostree_origin_parse_keyfile (GKeyFile *origin, GError **error)
CXX_TRY_VAR (kfv, rpmostreecxx::treefile_to_origin (**ret->treefile), error);
ret->kf = std::move (kfv);

ret->cached_unconfigured_state
= g_key_file_get_string (ret->kf, "origin", "unconfigured-state", NULL);

// We will eventually start converting origin to treefile, this helps us
// debug cases that may fail currently.
rpmostreecxx::origin_validate_roundtrip (*ret->kf);
Expand Down

0 comments on commit c74ba6a

Please sign in to comment.