mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-12-04 02:57:38 +00:00
remove unused functions.
This commit is contained in:
parent
83634cf633
commit
5315aafb1b
@ -36,16 +36,6 @@
|
||||
*
|
||||
* ***** END LICENSE BLOCK ***** */
|
||||
|
||||
/**
|
||||
* Communicator Shared Utility Library
|
||||
* for shared application glue for the Communicator suite of applications
|
||||
**/
|
||||
|
||||
/*
|
||||
Note: All Editor/Composer-related methods have been moved to editorApplicationOverlay.js,
|
||||
so app windows that require those must include editorNavigatorOverlay.xul
|
||||
*/
|
||||
|
||||
/**
|
||||
* Go into online/offline mode
|
||||
**/
|
||||
@ -117,10 +107,6 @@ function getBrowserURL() {
|
||||
function goPageSetup(printSettings)
|
||||
{
|
||||
try {
|
||||
if (printSettings == null) {
|
||||
alert("PrintSettings arg is null!");
|
||||
}
|
||||
|
||||
// This code calls the printoptions service to bring up the printoptions
|
||||
// dialog. This will be an xp dialog if the platform did not override
|
||||
// the ShowPrintSetupDialog method.
|
||||
@ -189,16 +175,6 @@ function goClickThrobber( urlPref )
|
||||
openTopWin(url);
|
||||
}
|
||||
|
||||
|
||||
//No longer needed. Rip this out since we are using openTopWin
|
||||
function goHelpMenu( url )
|
||||
{
|
||||
/* note that this chrome url should probably change to not have all of the navigator controls */
|
||||
/* also, do we want to limit the number of help windows that can be spawned? */
|
||||
window.openDialog( getBrowserURL(), "_blank", "chrome,all,dialog=no", url );
|
||||
}
|
||||
|
||||
|
||||
function openTopWin( url )
|
||||
{
|
||||
/* note that this chrome url should probably change to not have
|
||||
@ -275,26 +251,6 @@ function goUpdatePasteMenuItems()
|
||||
goUpdateCommand('cmd_paste');
|
||||
}
|
||||
|
||||
// function that extracts the filename from a url
|
||||
function extractFileNameFromUrl(urlstr)
|
||||
{
|
||||
if (!urlstr) return null;
|
||||
|
||||
// For "http://foo/bar/cheese.jpg", return "cheese.jpg".
|
||||
// For "imap://user@host.com:143/fetch>UID>/INBOX>951?part=1.2&type=image/gif&filename=foo.jpeg", return "foo.jpeg".
|
||||
// The 2nd url (ie, "imap://...") is generated for inline images by MimeInlineImage_parse_begin() in mimeiimg.cpp.
|
||||
var lastSlash = urlstr.slice(urlstr.lastIndexOf( "/" )+1);
|
||||
if (lastSlash)
|
||||
{
|
||||
var nameIndex = lastSlash.lastIndexOf( "filename=" );
|
||||
if (nameIndex != -1)
|
||||
return (lastSlash.slice(nameIndex+9));
|
||||
else
|
||||
return lastSlash;
|
||||
}
|
||||
return null;
|
||||
}
|
||||
|
||||
// Gather all descendent text under given document node.
|
||||
function gatherTextUnder ( root )
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user