From 94c32fe433dde0b345895298a0b3239378e3fd6c Mon Sep 17 00:00:00 2001 From: "bzrmirror%bugzilla.org" Date: Tue, 14 Apr 2015 23:45:59 +0000 Subject: [PATCH] Bug 1154099: Remove support for Bug.get_bugs and Bug.get_history r=LpSolit a=glob git-svn-id: svn://10.0.0.236/trunk@265933 18797224-902f-48f8-a5cc-f745e15eee43 --- mozilla/webtools/bugzilla/.bzrrev | 2 +- mozilla/webtools/bugzilla/.gitrev | 2 +- .../bugzilla/Bugzilla/API/1_0/Resource/Bug.pm | 17 ----------------- .../bugzilla/Bugzilla/WebService/Bug.pm | 17 ----------------- .../bugzilla/contrib/bz_webservice_demo.pl | 2 -- 5 files changed, 2 insertions(+), 38 deletions(-) diff --git a/mozilla/webtools/bugzilla/.bzrrev b/mozilla/webtools/bugzilla/.bzrrev index 9c4ec78d940..2108d31bef7 100644 --- a/mozilla/webtools/bugzilla/.bzrrev +++ b/mozilla/webtools/bugzilla/.bzrrev @@ -1 +1 @@ -9385 \ No newline at end of file +9386 \ No newline at end of file diff --git a/mozilla/webtools/bugzilla/.gitrev b/mozilla/webtools/bugzilla/.gitrev index bd8aca86b53..00405c91ba4 100644 --- a/mozilla/webtools/bugzilla/.gitrev +++ b/mozilla/webtools/bugzilla/.gitrev @@ -1 +1 @@ -bdd9c47cc031109dc606e99fc3bc424f0f6521a3 \ No newline at end of file +056decf4bef0619259a050a41abe4d3e565e0f91 \ No newline at end of file diff --git a/mozilla/webtools/bugzilla/Bugzilla/API/1_0/Resource/Bug.pm b/mozilla/webtools/bugzilla/Bugzilla/API/1_0/Resource/Bug.pm index 8bdf9ae2da9..6797526c4af 100644 --- a/mozilla/webtools/bugzilla/Bugzilla/API/1_0/Resource/Bug.pm +++ b/mozilla/webtools/bugzilla/Bugzilla/API/1_0/Resource/Bug.pm @@ -243,17 +243,6 @@ sub REST_RESOURCES { return $rest_resources; } -###################################################### -# Add aliases here for old method name compatibility # -###################################################### - -BEGIN { - # In 3.0, get was called get_bugs - *get_bugs = \&get; - # Before 3.4rc1, "history" was get_history. - *get_history = \&history; -} - ########### # Methods # ########### @@ -2296,8 +2285,6 @@ C. Gets information about particular bugs in the database. -Note: Can also be called as "get_bugs" for compatibilty with Bugzilla 3.0 API. - =item B To get information about a particular bug using its ID or alias: @@ -4874,8 +4861,4 @@ This method can throw all of the errors that L throws. =item REST_RESOURCES -=item get_bugs - -=item get_history - =back diff --git a/mozilla/webtools/bugzilla/Bugzilla/WebService/Bug.pm b/mozilla/webtools/bugzilla/Bugzilla/WebService/Bug.pm index b3cb631fb2a..b86cea51b9f 100644 --- a/mozilla/webtools/bugzilla/Bugzilla/WebService/Bug.pm +++ b/mozilla/webtools/bugzilla/Bugzilla/WebService/Bug.pm @@ -97,17 +97,6 @@ use constant ATTACHMENT_MAPPED_RETURNS => { mimetype => 'content_type', }; -###################################################### -# Add aliases here for old method name compatibility # -###################################################### - -BEGIN { - # In 3.0, get was called get_bugs - *get_bugs = \&get; - # Before 3.4rc1, "history" was get_history. - *get_history = \&history; -} - ########### # Methods # ########### @@ -2195,8 +2184,6 @@ B Gets information about particular bugs in the database. -Note: Can also be called as "get_bugs" for compatibilty with Bugzilla 3.0 API. - =item B To get information about a particular bug using its ID or alias: @@ -4798,8 +4785,4 @@ This method can throw all of the errors that L throws. =over -=item get_bugs - -=item get_history - =back diff --git a/mozilla/webtools/bugzilla/contrib/bz_webservice_demo.pl b/mozilla/webtools/bugzilla/contrib/bz_webservice_demo.pl index af8c253084f..6c8c21dfafb 100755 --- a/mozilla/webtools/bugzilla/contrib/bz_webservice_demo.pl +++ b/mozilla/webtools/bugzilla/contrib/bz_webservice_demo.pl @@ -259,8 +259,6 @@ if ($fetch_extension_info) { Call C with the ID of the bug you want to know more of. The call will return a C object. -Note: You can also use "Bug.get_bugs" for compatibility with Bugzilla 3.0 API. - =cut if ($bug_id) {