summaryrefslogtreecommitdiffstats
path: root/Bugzilla/Whine
diff options
context:
space:
mode:
authorDylan William Hardison <dylan@hardison.net>2018-03-07 00:42:09 +0100
committerDylan William Hardison <dylan@hardison.net>2018-03-07 00:42:09 +0100
commit51c442fb9e1eb1c779a5ba18105335fe54eb234c (patch)
treee3d0f9e0e8758237501950af022c976c450c53fe /Bugzilla/Whine
parent517805794fc99737fb69c4e0cdae7c045a88eb7d (diff)
downloadbugzilla-51c442fb9e1eb1c779a5ba18105335fe54eb234c.tar.gz
bugzilla-51c442fb9e1eb1c779a5ba18105335fe54eb234c.tar.xz
Revert Bug 1273381
Diffstat (limited to 'Bugzilla/Whine')
-rw-r--r--Bugzilla/Whine/Query.pm9
-rw-r--r--Bugzilla/Whine/Schedule.pm7
2 files changed, 1 insertions, 15 deletions
diff --git a/Bugzilla/Whine/Query.pm b/Bugzilla/Whine/Query.pm
index 885737114..6ea91cc51 100644
--- a/Bugzilla/Whine/Query.pm
+++ b/Bugzilla/Whine/Query.pm
@@ -33,22 +33,15 @@ use constant DB_COLUMNS => qw(
use constant NAME_FIELD => 'id';
use constant LIST_ORDER => 'sortkey';
-use constant QUERY_NAME_FIELD => 'query_name';
####################
# Simple Accessors #
####################
-use Class::XSAccessor {
- accessors => {
- id => __PACKAGE__->ID_FIELD,
- name => __PACKAGE__->QUERY_NAME_FIELD,
- },
-};
-
sub eventid { return $_[0]->{'eventid'}; }
sub sortkey { return $_[0]->{'sortkey'}; }
sub one_email_per_bug { return $_[0]->{'onemailperbug'}; }
sub title { return $_[0]->{'title'}; }
+sub name { return $_[0]->{'query_name'}; }
1;
diff --git a/Bugzilla/Whine/Schedule.pm b/Bugzilla/Whine/Schedule.pm
index 725920cd7..017b744e5 100644
--- a/Bugzilla/Whine/Schedule.pm
+++ b/Bugzilla/Whine/Schedule.pm
@@ -45,13 +45,6 @@ use constant LIST_ORDER => 'id';
####################
# Simple Accessors #
####################
-use Class::XSAccessor {
- accessors => {
- id => __PACKAGE__->ID_FIELD,
- name => __PACKAGE__->NAME_FIELD,
- },
-};
-
sub eventid { return $_[0]->{'eventid'}; }
sub run_day { return $_[0]->{'run_day'}; }
sub run_time { return $_[0]->{'run_time'}; }