comment out routine that doesn't compile to fix bustage.

This commit is contained in:
pinkerton%netscape.com 1999-01-28 16:42:47 +00:00
Родитель d62f23151e
Коммит 7c7a4f4dc2
1 изменённых файлов: 7 добавлений и 3 удалений

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

@ -837,6 +837,8 @@ nsresult nsEditor::CreateTxnForDeleteText(nsIDOMCharacterData *aElement,
*/
nsresult nsEditor::CreateTxnToHandleEnterKey(EditAggregateTxn **aTxn)
{
#if THIS_ROUTINE_DOESNT_COMPILE
// allocate the out-param transaction
nsresult result = TransactionFactory::GetNewTransaction(kEditAggregateTxnIID, (EditTxn **)aTxn);
if (NS_FAILED(result))
@ -865,9 +867,9 @@ nsresult nsEditor::CreateTxnToHandleEnterKey(EditAggregateTxn **aTxn)
if(PR_FALSE==isCollapsed)
{
EditAggregateTxn *delSelTxn;
result = CreateTxnForDeleteSelection(nsIEditor::eLTR, &delSelTtxn);
if ((NS_SUCCEEDED(result)) && (delSelTtxn)) {
(*aTxn)->AppendChild(delSelTtxn);
result = CreateTxnForDeleteSelection(nsIEditor::eLTR, &delSelTxn);
if ((NS_SUCCEEDED(result)) && (delSelTxn)) {
(*aTxn)->AppendChild(delSelTxn);
}
}
// at this point, we have a collapsed selection
@ -899,6 +901,8 @@ nsresult nsEditor::CreateTxnToHandleEnterKey(EditAggregateTxn **aTxn)
NS_IF_RELEASE(*aTxn);
}
return result;
#endif
return NS_OK;
}