From 07a9f4248c978771e55dc9054238ff03a4d6865c Mon Sep 17 00:00:00 2001 From: Matěj Cepl Date: Fri, 10 Sep 2010 20:50:05 +0200 Subject: Getting Bug.get via XML-RPC --- lib/rhbzpage.js | 20 -------------------- 1 file changed, 20 deletions(-) (limited to 'lib/rhbzpage.js') diff --git a/lib/rhbzpage.js b/lib/rhbzpage.js index 1e870f7..5e8291d 100644 --- a/lib/rhbzpage.js +++ b/lib/rhbzpage.js @@ -51,8 +51,6 @@ var RHBugzillaPage = function RHBugzillaPage(win, config) { frameNo: new RegExp("^\\s*#([0-9]*)\\s"), soughtLines: new RegExp("^\\s*(\\[[0-9 .]*\\])?\\s*\\((EE|WW)\\)|\\s*Backtrace") }; - - this.constantData.XMLRPCData = JSON.parse(self.data.load("XMLRPCdata.json")); // END OF CONSTANTS var that = this; @@ -60,7 +58,6 @@ var RHBugzillaPage = function RHBugzillaPage(win, config) { this.signaturesCounter = 0; this.chipMagicInterestingLine = ""; - this.login = this.getLogin(); this.product = this.doc.getElementById("product").value; this.maintCCAddr = null; @@ -72,11 +69,6 @@ var RHBugzillaPage = function RHBugzillaPage(win, config) { var ITbutton = this.doc.getElementById("cf_issuetracker"); this.its = ITbutton ? ITbutton.value.trim() : ""; - // XML-RPC password - if (this.hostname in this.constantData.XMLRPCData) { - this.password = this.getPassword(this.login); - } - if (!this.constantData.ProfessionalProducts) { this.constantData.ProfessionalProducts = JSON.parse(self.data.load("professionalProducts.json")); @@ -149,18 +141,6 @@ RHBugzillaPage.prototype.toString = function toString () { RHBugzillaPage.prototype = util.heir(BZPage); RHBugzillaPage.prototype.constructor = RHBugzillaPage; -/** - * Get login of the currently logged-in user. - * - * @return String with the login name of the currently logged-in user - */ -RHBugzillaPage.prototype.getLogin = function getLogin () { - var lastLIElement = this.doc.querySelector("#header ul.links li:last-of-type"); - var loginArr = lastLIElement.textContent.split("\n"); - var loginStr = loginArr[loginArr.length - 1].trim(); - return loginStr; -}; - /** * Find default assignee based on the current component * -- cgit