Bug 950785 - Remove unused selectWord and selectWordContext. r=margaret

This commit is contained in:
Raymond Agbeame 2013-12-17 18:22:42 -08:00
parent f3715768ed
commit 005b693e38

View File

@ -6230,22 +6230,6 @@ var ClipboardHelper = {
}
},
selectWord: function(aElement, aX, aY) {
SelectionHandler.startSelection(aElement, {
mode: SelectionHandler.SELECT_AT_POINT,
x: aX,
y: aY
});
},
searchWith: function(aElement) {
SelectionHandler.searchSelection(aElement);
},
share: function() {
SelectionHandler.shareSelection();
},
paste: function(aElement) {
if (!aElement || !(aElement instanceof Ci.nsIDOMNSEditableElement))
return;
@ -6284,15 +6268,6 @@ var ClipboardHelper = {
}
},
selectWordContext: {
matches: function selectWordContextMatches(aElement) {
if (NativeWindow.contextmenus.textContext.matches(aElement))
return aElement.textLength > 0;
return false;
}
},
selectAllContext: {
matches: function selectAllContextMatches(aElement, aX, aY) {
if (SelectionHandler.isSelectionActive())