aboutsummaryrefslogtreecommitdiff
path: root/mod
diff options
context:
space:
mode:
authorFrancois Kritzinger <francois@codesynthesis.com>2024-05-07 16:55:45 +0200
committerFrancois Kritzinger <francois@codesynthesis.com>2024-06-05 09:12:46 +0200
commitba32e665e10fd513a866c4ee565cdefe8bcc639e (patch)
tree62b7400db707ef5c4f8a7efff61a543a48b5a15c /mod
parent0847b7c51b9abd26261b726843ac80e50443ab84 (diff)
Remove unused fields from gh_check_suite struct
Diffstat (limited to 'mod')
-rw-r--r--mod/mod-ci-github-gh.cxx10
-rw-r--r--mod/mod-ci-github-gh.hxx4
2 files changed, 2 insertions, 12 deletions
diff --git a/mod/mod-ci-github-gh.cxx b/mod/mod-ci-github-gh.cxx
index 90389f3..7007db8 100644
--- a/mod/mod-ci-github-gh.cxx
+++ b/mod/mod-ci-github-gh.cxx
@@ -118,7 +118,7 @@ namespace brep
{
p.next_expect (event::begin_object);
- bool ni (false), hb (false), hs (false), bf (false), at (false);
+ bool ni (false), hb (false), hs (false);
// Skip unknown/uninteresting members.
//
@@ -132,16 +132,12 @@ namespace brep
if (c (ni, "node_id")) node_id = p.next_expect_string ();
else if (c (hb, "head_branch")) head_branch = p.next_expect_string ();
else if (c (hs, "head_sha")) head_sha = p.next_expect_string ();
- else if (c (bf, "before")) before = p.next_expect_string ();
- else if (c (at, "after")) after = p.next_expect_string ();
else p.next_expect_value_skip ();
}
if (!ni) missing_member (p, "gh_check_suite", "node_id");
if (!hb) missing_member (p, "gh_check_suite", "head_branch");
if (!hs) missing_member (p, "gh_check_suite", "head_sha");
- if (!bf) missing_member (p, "gh_check_suite", "before");
- if (!at) missing_member (p, "gh_check_suite", "after");
}
ostream&
@@ -149,9 +145,7 @@ namespace brep
{
os << "node_id: " << cs.node_id
<< ", head_branch: " << cs.head_branch
- << ", head_sha: " << cs.head_sha
- << ", before: " << cs.before
- << ", after: " << cs.after;
+ << ", head_sha: " << cs.head_sha;
return os;
}
diff --git a/mod/mod-ci-github-gh.hxx b/mod/mod-ci-github-gh.hxx
index 7e46cbb..b3da197 100644
--- a/mod/mod-ci-github-gh.hxx
+++ b/mod/mod-ci-github-gh.hxx
@@ -42,15 +42,11 @@ namespace brep
// The "check_suite" object within a check_suite webhook event request.
//
- // @@ TODO Remove unused fields.
- //
struct gh_check_suite
{
string node_id;
string head_branch;
string head_sha;
- string before;
- string after;
explicit
gh_check_suite (json::parser&);