diff options
Diffstat (limited to 'lib/rhbzpage.js')
-rw-r--r-- | lib/rhbzpage.js | 20 |
1 files changed, 0 insertions, 20 deletions
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")); @@ -150,18 +142,6 @@ 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 * * @return String what would be a default assignee if |