remove needless codes

This commit is contained in:
Piro / SHIMODA Hiroshi 2011-01-20 01:31:22 +09:00
parent c117ad1ccf
commit bd0e8b39e5

View File

@ -196,8 +196,7 @@ catch(e) {
!isCopy && !isCopy &&
sv.getTabBrowserFromChild(tab) != b && sv.getTabBrowserFromChild(tab) != b &&
( (
('duplicateTab' in b) || ('duplicateTab' in b)
('swapBrowsersAndCloseOther' in b)
) )
) { ) {
info.action |= sv.kACTION_IMPORT; info.action |= sv.kACTION_IMPORT;
@ -446,8 +445,7 @@ catch(e) {
// Firefox fails to "move" collapsed tabs. So, expand them first // Firefox fails to "move" collapsed tabs. So, expand them first
// and collapse them after they are moved. // and collapse them after they are moved.
var collapseExpandState = []; var collapseExpandState = [];
if (aInfo.action & sv.kACTION_IMPORT && if (aInfo.action & sv.kACTION_IMPORT) {
'swapBrowsersAndCloseOther' in targetBrowser) {
draggedWholeTree.forEach(function(aTab) { draggedWholeTree.forEach(function(aTab) {
collapseExpandState.push(sv.getTabValue(aTab, sv.kSUBTREE_COLLAPSED) == 'true'); collapseExpandState.push(sv.getTabValue(aTab, sv.kSUBTREE_COLLAPSED) == 'true');
sv.collapseExpandSubtree(aTab, false, true); sv.collapseExpandSubtree(aTab, false, true);
@ -462,8 +460,7 @@ catch(e) {
var parent = parentTabsArray[aIndex]; var parent = parentTabsArray[aIndex];
if (tabsInfo.isMultipleMove && 'MultipleTabService' in sourceWindow) if (tabsInfo.isMultipleMove && 'MultipleTabService' in sourceWindow)
sourceWindow.MultipleTabService.setSelection(aTab, false); sourceWindow.MultipleTabService.setSelection(aTab, false);
if (aInfo.action & sv.kACTION_IMPORT && if (aInfo.action & sv.kACTION_IMPORT) {
'swapBrowsersAndCloseOther' in targetBrowser) {
tab = targetBrowser.addTab(); tab = targetBrowser.addTab();
tab.linkedBrowser.stop(); tab.linkedBrowser.stop();
tab.linkedBrowser.docShell; tab.linkedBrowser.docShell;