Bug 416666 (part 1) removed unused functions, r=philor

This commit is contained in:
jminta%gmail.com 2008-02-13 15:19:01 +00:00
Родитель 0eb685b3b5
Коммит 0e087298af
5 изменённых файлов: 4 добавлений и 73 удалений

Просмотреть файл

@ -47,8 +47,6 @@
// for this Overlay to work properly
var gFolderJustSwitched = false;
var gBeforeFolderLoadTime;
var gRDFNamespace = "http://www.w3.org/1999/02/22-rdf-syntax-ns#";
var gVirtualFolderTerms;
var gXFVirtualFolderTerms;
var gCurrentVirtualFolderUri;

Просмотреть файл

@ -38,7 +38,6 @@
#
# ***** END LICENSE BLOCK *****
var promptService = Components.classes["@mozilla.org/embedcomp/prompt-service;1"].getService(Components.interfaces.nsIPromptService);
var gMessengerBundle = document.getElementById("bundle_messenger");
// Controller object for folder pane
@ -590,7 +589,7 @@ var DefaultController =
MsgViewPageSource();
return;
case "cmd_setFolderCharset":
MsgSetFolderCharset();
MsgFolderProperties();
return;
case "cmd_reload":
MsgReload();
@ -946,6 +945,9 @@ function MsgDeleteFolder()
var errorMessage = gMessengerBundle.getFormattedString("specialFolderDeletionErr",
[specialFolder]);
var specialFolderDeletionErrTitle = gMessengerBundle.getString("specialFolderDeletionErrTitle");
var promptService = Components.classes["@mozilla.org/embedcomp/prompt-service;1"]
.getService(Components.interfaces.nsIPromptService);
promptService.alert(window, specialFolderDeletionErrTitle, errorMessage);
continue;
}
@ -1070,12 +1072,6 @@ function SwitchPaneFocus(event)
}
}
function SetFocusFolderPane()
{
var folderTree = GetFolderTree();
folderTree.focus();
}
function SetFocusThreadPane()
{
var threadTree = GetThreadTree();
@ -1088,11 +1084,6 @@ function SetFocusMessagePane()
document.commandDispatcher.advanceFocusIntoSubtree(GetMessagePane());
}
function is_collapsed(element)
{
return (element.getAttribute('state') == 'collapsed');
}
function isCommandEnabled(cmd)
{
var selectedFolders = GetSelectedMsgFolders();

Просмотреть файл

@ -2216,29 +2216,6 @@ function MsgSynchronizeOffline()
"", "centerscreen,chrome,modal,titlebar,resizable=yes",{msgWindow:msgWindow});
}
function MsgMarkByDate() {}
function MsgOpenAttachment() {}
function MsgUpdateMsgCount() {}
function MsgImport() {}
function MsgSynchronize() {}
function MsgGetSelectedMsg() {}
function MsgGetFlaggedMsg() {}
function MsgSelectThread() {}
function MsgShowFolders(){}
function MsgShowLocationbar() {}
function MsgViewAttachInline() {}
function MsgWrapLongLines() {}
function MsgIncreaseFont() {}
function MsgDecreaseFont() {}
function MsgShowImages() {}
function MsgRefresh() {}
function MsgViewPageInfo() {}
function MsgFirstUnreadMessage() {}
function MsgFirstFlaggedMessage() {}
function MsgAddSenderToAddressBook() {}
function MsgAddAllToAddressBook() {}
function SpaceHit(event)
{
var contentWindow = window.top._content;

Просмотреть файл

@ -1330,11 +1330,6 @@ function IsFolderPaneCollapsed()
return GetFolderTree().parentNode.collapsed;
}
function FindMessenger()
{
return messenger;
}
function ClearThreadPaneSelection()
{
try {
@ -1365,15 +1360,6 @@ function ClearMessagePane()
}
}
function GetSelectedFolderIndex()
{
var folderTree = GetFolderTree();
var startIndex = {};
var endIndex = {};
folderTree.view.selection.getRangeAt(0, startIndex, endIndex);
return startIndex.value;
}
// Function to change the highlighted row to where the mouse was clicked
// without loading the contents of the selected row.
// It will also keep the outline/dotted line in the original row.
@ -1680,11 +1666,6 @@ function GetFolderResource(tree, index)
return tree.builderView.getResourceAtIndex(index);
}
function GetFolderIndex(tree, resource)
{
return tree.builderView.getIndexOfResource(resource);
}
function GetFolderAttribute(tree, source, attribute)
{
var property = RDF.GetResource("http://home.netscape.com/NC-rdf#" + attribute);

Просмотреть файл

@ -49,17 +49,6 @@
//NOTE: gMessengerBundle must be defined and set or this Overlay won't work
function ConvertDOMListToResourceArray(nodeList)
{
var result = Components.classes["@mozilla.org/supports-array;1"].createInstance(Components.interfaces.nsISupportsArray);
for (var i=0; i<nodeList.length; i++) {
result.AppendElement(nodeList[i].resource);
}
return result;
}
function GetSelectedFolderURI()
{
var folderTree = GetFolderTree();
@ -305,11 +294,6 @@ function MsgToggleMessagePane()
ChangeMessagePaneVisibility(IsMessagePaneCollapsed());
}
function MsgSetFolderCharset()
{
MsgFolderProperties();
}
// Given a URI we would like to return corresponding message folder here.
// An additonal input param which specifies whether or not to check folder
// attributes (like if there exists a parent or is it a server) is also passed