diff options
author | Dylan William Hardison <dylan@hardison.net> | 2018-03-07 00:42:09 +0100 |
---|---|---|
committer | Dylan William Hardison <dylan@hardison.net> | 2018-03-07 00:42:09 +0100 |
commit | 51c442fb9e1eb1c779a5ba18105335fe54eb234c (patch) | |
tree | e3d0f9e0e8758237501950af022c976c450c53fe /extensions/Push | |
parent | 517805794fc99737fb69c4e0cdae7c045a88eb7d (diff) | |
download | bugzilla-51c442fb9e1eb1c779a5ba18105335fe54eb234c.tar.gz bugzilla-51c442fb9e1eb1c779a5ba18105335fe54eb234c.tar.xz |
Revert Bug 1273381
This reverts commit ed53ecda0546d6c639fa3d227a59ace4d57b81a5.
Diffstat (limited to 'extensions/Push')
-rw-r--r-- | extensions/Push/lib/BacklogMessage.pm | 7 | ||||
-rw-r--r-- | extensions/Push/lib/Backoff.pm | 7 | ||||
-rw-r--r-- | extensions/Push/lib/LogEntry.pm | 7 | ||||
-rw-r--r-- | extensions/Push/lib/Message.pm | 6 | ||||
-rw-r--r-- | extensions/Push/lib/Option.pm | 9 |
5 files changed, 2 insertions, 34 deletions
diff --git a/extensions/Push/lib/BacklogMessage.pm b/extensions/Push/lib/BacklogMessage.pm index 7c248a501..28b17bae3 100644 --- a/extensions/Push/lib/BacklogMessage.pm +++ b/extensions/Push/lib/BacklogMessage.pm @@ -79,13 +79,6 @@ sub create_from_message { # accessors # -use Class::XSAccessor { - accessors => { - id => __PACKAGE__->ID_FIELD, - name => __PACKAGE__->NAME_FIELD, - }, -}; - sub message_id { return $_[0]->{'message_id'} } sub push_ts { return $_[0]->{'push_ts'}; } sub payload { return $_[0]->{'payload'}; } diff --git a/extensions/Push/lib/Backoff.pm b/extensions/Push/lib/Backoff.pm index d0de1310d..f0116a2a7 100644 --- a/extensions/Push/lib/Backoff.pm +++ b/extensions/Push/lib/Backoff.pm @@ -47,13 +47,6 @@ use constant LIST_ORDER => 'next_attempt_ts'; # accessors # -use Class::XSAccessor { - accessors => { - id => __PACKAGE__->ID_FIELD, - name => __PACKAGE__->NAME_FIELD, - }, -}; - sub connector { return $_[0]->{'connector'}; } sub next_attempt_ts { return $_[0]->{'next_attempt_ts'}; } sub attempts { return $_[0]->{'attempts'}; } diff --git a/extensions/Push/lib/LogEntry.pm b/extensions/Push/lib/LogEntry.pm index 2d45b9ee1..f4e894b94 100644 --- a/extensions/Push/lib/LogEntry.pm +++ b/extensions/Push/lib/LogEntry.pm @@ -48,13 +48,6 @@ use constant LIST_ORDER => 'processed_ts DESC'; # accessors # -use Class::XSAccessor { - accessors => { - id => __PACKAGE__->ID_FIELD, - name => __PACKAGE__->NAME_FIELD, - }, -}; - sub message_id { return $_[0]->{'message_id'}; } sub change_set { return $_[0]->{'change_set'}; } sub routing_key { return $_[0]->{'routing_key'}; } diff --git a/extensions/Push/lib/Message.pm b/extensions/Push/lib/Message.pm index d8a7f7a26..1beb18ef0 100644 --- a/extensions/Push/lib/Message.pm +++ b/extensions/Push/lib/Message.pm @@ -61,12 +61,6 @@ sub create_from_transient { # # accessors # -use Class::XSAccessor { - accessors => { - id => __PACKAGE__->ID_FIELD, - name => __PACKAGE__->NAME_FIELD, - }, -}; sub push_ts { return $_[0]->{'push_ts'}; } sub payload { return $_[0]->{'payload'}; } diff --git a/extensions/Push/lib/Option.pm b/extensions/Push/lib/Option.pm index c2e23d513..a08e4c11d 100644 --- a/extensions/Push/lib/Option.pm +++ b/extensions/Push/lib/Option.pm @@ -35,18 +35,13 @@ use constant VALIDATORS => { connector => \&_check_connector, }; use constant LIST_ORDER => 'connector'; -use constant NAME_FIELD => 'option_name'; + # # accessors # -use Class::XSAccessor { - accessors => { - id => __PACKAGE__->ID_FIELD, - name => __PACKAGE__->NAME_FIELD, - }, -}; sub connector { return $_[0]->{'connector'}; } +sub name { return $_[0]->{'option_name'}; } sub value { return $_[0]->{'option_value'}; } # |