summaryrefslogtreecommitdiffstats
path: root/extensions/MyDashboard/lib/WebService.pm
diff options
context:
space:
mode:
authorDylan William Hardison <dylan@hardison.net>2014-10-11 02:31:06 +0200
committerDylan William Hardison <dylan@hardison.net>2014-10-11 02:31:06 +0200
commit2f5045ad5b20492db98f7666429053d2a9276266 (patch)
tree35ded23a72d0d9a3a1ba5c9d2bb9c6dc1e935bbc /extensions/MyDashboard/lib/WebService.pm
parentccea670dcba24ff2ac0233437aa549b22edb390c (diff)
downloadbugzilla-2f5045ad5b20492db98f7666429053d2a9276266.tar.gz
bugzilla-2f5045ad5b20492db98f7666429053d2a9276266.tar.xz
Revert "Bug 1074586 - New Feature: Bugs of Interest"
Diffstat (limited to 'extensions/MyDashboard/lib/WebService.pm')
-rw-r--r--extensions/MyDashboard/lib/WebService.pm27
1 files changed, 0 insertions, 27 deletions
diff --git a/extensions/MyDashboard/lib/WebService.pm b/extensions/MyDashboard/lib/WebService.pm
index 9e9de42be..87061eabe 100644
--- a/extensions/MyDashboard/lib/WebService.pm
+++ b/extensions/MyDashboard/lib/WebService.pm
@@ -17,7 +17,6 @@ use Bugzilla::Util qw(detaint_natural trick_taint template_var datetime_from);
use Bugzilla::WebService::Util qw(validate);
use Bugzilla::Extension::MyDashboard::Queries qw(QUERY_DEFS query_bugs query_flags);
-use Bugzilla::Extension::MyDashboard::BugInterest;
use constant READ_ONLY => qw(
run_bug_query
@@ -128,32 +127,6 @@ sub run_flag_query {
return { result => { $type => $results }};
}
-sub bug_interest_unmark {
- my ($self, $params) = @_;
- my $user = Bugzilla->login(LOGIN_REQUIRED);
-
- ThrowCodeError('param_required', { function => 'MyDashboard.bug_interest_unmark', param => 'bug_ids' })
- unless $params->{bug_ids};
-
- my @bug_ids = ref($params->{bug_ids}) ? @{$params->{bug_ids}} : ( $params->{bug_ids} );
-
- Bugzilla->dbh->bz_start_transaction();
- foreach my $bug_id (@bug_ids) {
- Bugzilla::Extension::MyDashboard::BugInterest->unmark($user->id, $bug_id);
- }
- Bugzilla->dbh->bz_commit_transaction();
-}
-
-sub rest_resources {
- return [
- qr{^/bug_interest_unmark$}, {
- PUT => {
- method => 'bug_interest_unmark'
- }
- }
- ];
-}
-
1;
__END__