diff options
author | Caolán McNamara <caolanm@redhat.com> | 2015-10-25 15:07:06 +0000 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2015-10-25 15:41:02 +0000 |
commit | 32ca4302efb6a6de89fd63877ee990c4ac5b9d7c (patch) | |
tree | d55b6d365e1dcece763189a871924110fc31153b /qadevOOo | |
parent | 10db9232eaab2c53e84a7521e3f55579ce0c1bef (diff) |
coverity#1326136 Logically dead code
Change-Id: I17c0f7e22e63823c16ebcdc1db1e4f618aad22a1
Diffstat (limited to 'qadevOOo')
-rw-r--r-- | qadevOOo/tests/java/ifc/sheet/_XSheetCellCursor.java | 32 |
1 files changed, 0 insertions, 32 deletions
diff --git a/qadevOOo/tests/java/ifc/sheet/_XSheetCellCursor.java b/qadevOOo/tests/java/ifc/sheet/_XSheetCellCursor.java index 538f1fc40bf7..e309c9a17f33 100644 --- a/qadevOOo/tests/java/ifc/sheet/_XSheetCellCursor.java +++ b/qadevOOo/tests/java/ifc/sheet/_XSheetCellCursor.java @@ -147,7 +147,6 @@ public class _XSheetCellCursor extends MultiMethodTest { public void _collapseToCurrentRegion(){ boolean bResult = true; int width = 4, height = 4; - int leftCol = -1, topRow = -1; XSpreadsheet oSheet = oObj.getSpreadsheet(); UnoRuntime.queryInterface( @@ -165,37 +164,6 @@ public class _XSheetCellCursor extends MultiMethodTest { + " but it is " + cols + "x" + rows); } - // if previous test was successful try more complicated case - if (bResult) { - if (leftCol != -1 && topRow != -1) { - try { - oSheet.getCellByPosition( - leftCol + width, topRow + height).setValue(1); - } catch (com.sun.star.lang.IndexOutOfBoundsException e) { - log.print("Can't get cell by position:"); - e.printStackTrace(log); - bResult = false; - } - - oObj.collapseToCurrentRegion() ; - - // checking results - cols = UnoRuntime.queryInterface( - XColumnRowRange.class, oObj).getColumns().getCount(); - rows = UnoRuntime.queryInterface( - XColumnRowRange.class, oObj).getRows().getCount(); - - if (cols == width + 1 && rows == height + 1) { - bResult &= true; - } else { - bResult = false; - log.println("After collapseToCurrentRegion() call [2]" - + " region must have size " + (width+1) + "x" - + (height + 1) + " but it is " + cols + "x" + rows ); - } - } - } - tRes.tested("collapseToCurrentRegion()", bResult); // restore original size |