Author: orw
Date: Thu Jan  2 11:19:29 2014
New Revision: 1554790

URL: http://svn.apache.org/r1554790
Log:
123910: removing duplicate code


Modified:
    openoffice/trunk/main/oox/source/xls/worksheethelper.cxx

Modified: openoffice/trunk/main/oox/source/xls/worksheethelper.cxx
URL: 
http://svn.apache.org/viewvc/openoffice/trunk/main/oox/source/xls/worksheethelper.cxx?rev=1554790&r1=1554789&r2=1554790&view=diff
==============================================================================
--- openoffice/trunk/main/oox/source/xls/worksheethelper.cxx (original)
+++ openoffice/trunk/main/oox/source/xls/worksheethelper.cxx Thu Jan  2 
11:19:29 2014
@@ -1093,26 +1093,6 @@ void WorksheetGlobals::finalizeValidatio
             {
             }
 
-            try
-            {
-                sal_Int32 nIndex = 0;
-                OUString aToken = aIt->msRef.getToken( 0, ' ', nIndex );
-
-                Reference<XSpreadsheet> xSheet = getSheetFromDoc( 
getCurrentSheetIndex() );
-                Reference<XCellRange> xDBCellRange;
-                Reference<XCell> xCell;
-                xDBCellRange = xSheet->getCellRangeByName( aToken );
-
-                xCell = xDBCellRange->getCellByPosition( 0, 0 );
-                Reference<XCellAddressable> xCellAddressable( xCell, 
UNO_QUERY_THROW );
-                CellAddress aFirstCell = xCellAddressable->getCellAddress();
-                Reference<XSheetCondition> xCondition( xValidation, 
UNO_QUERY_THROW );
-                xCondition->setSourcePosition( aFirstCell );   
-            }
-            catch( Exception& )
-            {
-            }
-
             // convert validation type to API enum
             ValidationType eType = ValidationType_ANY;
             switch( aIt->mnType )


Reply via email to