mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-12-11 16:32:59 +00:00
Bug 384256 - Remove unused function _getContentShell and useUBHistoryItem, patch by Jason Barnabe <jason_barnabe@fastmail.fm>, r=gavin
This commit is contained in:
parent
07b2c9ca5f
commit
9837bbf7c8
@ -5514,22 +5514,6 @@ var FeedHandler = {
|
|||||||
this.loadFeed(href, event);
|
this.loadFeed(href, event);
|
||||||
},
|
},
|
||||||
|
|
||||||
/**
|
|
||||||
* Locate the shell that has a specified document loaded in it.
|
|
||||||
* @param doc
|
|
||||||
* The document to find a shell for.
|
|
||||||
* @returns The doc shell that contains the specified document.
|
|
||||||
*/
|
|
||||||
_getContentShell: function(doc) {
|
|
||||||
var browsers = getBrowser().browsers;
|
|
||||||
for (var i = 0; i < browsers.length; i++) {
|
|
||||||
var shell = findChildShell(doc, browsers[i].docShell, null);
|
|
||||||
if (shell)
|
|
||||||
return { shell: shell, browser: browsers[i] };
|
|
||||||
}
|
|
||||||
return null;
|
|
||||||
},
|
|
||||||
|
|
||||||
#ifndef MOZ_PLACES_BOOKMARKS
|
#ifndef MOZ_PLACES_BOOKMARKS
|
||||||
/**
|
/**
|
||||||
* Adds a Live Bookmark to a feed
|
* Adds a Live Bookmark to a feed
|
||||||
|
@ -155,12 +155,3 @@ function onChooseFile()
|
|||||||
}
|
}
|
||||||
doEnabling();
|
doEnabling();
|
||||||
}
|
}
|
||||||
|
|
||||||
function useUBHistoryItem(aMenuItem)
|
|
||||||
{
|
|
||||||
var urlbar = document.getElementById("dialog.input");
|
|
||||||
urlbar.value = aMenuItem.getAttribute("label");
|
|
||||||
urlbar.focus();
|
|
||||||
doEnabling();
|
|
||||||
}
|
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user