aboutsummaryrefslogtreecommitdiff
path: root/mod
diff options
context:
space:
mode:
authorFrancois Kritzinger <francois@codesynthesis.com>2024-10-31 15:18:58 +0200
committerFrancois Kritzinger <francois@codesynthesis.com>2024-11-04 11:10:53 +0200
commit9826569176b9b1bfa33cba2c37b050c6900db3ad (patch)
tree4b75700cde74bcac3bf371793d19bbb2a6120e32 /mod
parent929ee20752c4430af3002814fb12329b157574bb (diff)
Remove unused member gh_repository::default_branch
Diffstat (limited to 'mod')
-rw-r--r--mod/mod-ci-github-gh.cxx5
-rw-r--r--mod/mod-ci-github-gh.hxx1
2 files changed, 1 insertions, 5 deletions
diff --git a/mod/mod-ci-github-gh.cxx b/mod/mod-ci-github-gh.cxx
index 6e178e2..208adbd 100644
--- a/mod/mod-ci-github-gh.cxx
+++ b/mod/mod-ci-github-gh.cxx
@@ -294,7 +294,7 @@ namespace brep
{
p.next_expect (event::begin_object);
- bool ni (false), nm (false), fn (false), db (false), cu (false);
+ bool ni (false), nm (false), fn (false), cu (false);
// Skip unknown/uninteresting members.
//
@@ -308,7 +308,6 @@ namespace brep
if (c (ni, "node_id")) node_id = p.next_expect_string ();
else if (c (nm, "name")) name = p.next_expect_string ();
else if (c (fn, "full_name")) path = p.next_expect_string ();
- else if (c (db, "default_branch")) default_branch = p.next_expect_string ();
else if (c (cu, "clone_url")) clone_url = p.next_expect_string ();
else p.next_expect_value_skip ();
}
@@ -316,7 +315,6 @@ namespace brep
if (!ni) missing_member (p, "gh_repository", "node_id");
if (!nm) missing_member (p, "gh_repository", "name");
if (!fn) missing_member (p, "gh_repository", "full_name");
- if (!db) missing_member (p, "gh_repository", "default_branch");
if (!cu) missing_member (p, "gh_repository", "clone_url");
}
@@ -326,7 +324,6 @@ namespace brep
os << "node_id: " << rep.node_id
<< ", name: " << rep.name
<< ", path: " << rep.path
- << ", default_branch: " << rep.default_branch
<< ", clone_url: " << rep.clone_url;
return os;
diff --git a/mod/mod-ci-github-gh.hxx b/mod/mod-ci-github-gh.hxx
index f79d01f..f3bcfeb 100644
--- a/mod/mod-ci-github-gh.hxx
+++ b/mod/mod-ci-github-gh.hxx
@@ -118,7 +118,6 @@ namespace brep
string node_id;
string name;
string path; // Repository path (<org>/<repo>) under github.com.
- string default_branch;
string clone_url;
explicit