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-10-15 09:05:28 +0200
commit5b1c5efd0c334a55cf6808cff6c5ec08ef9cf338 (patch)
tree9b667466b0c40f7d4368d20801e094c95ff826fe /mod
parentb599fa90282938273f3d744ee9fda4a5fbfacbd9 (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&);