summaryrefslogtreecommitdiff
path: root/wizards/com/sun/star/wizards/table
diff options
context:
space:
mode:
authorNoel Grandin <noel@peralex.com>2015-10-14 11:49:19 +0200
committerNoel Grandin <noel@peralex.com>2015-10-14 12:05:56 +0200
commit8f60da0a29744d456cb074af05aeb4b40d1774fa (patch)
treeb1597c22de261c83817f962e9443df41b84de068 /wizards/com/sun/star/wizards/table
parente96cb6c01ec175b9bd97341ded3e9e8e415a4110 (diff)
cid#1326681 DLS: Dead local store
and clean up the return value, no need to return a TypeInfo when all we need is a boolean Change-Id: I0909c2b96762870d753c22ab5056e718af56d75b
Diffstat (limited to 'wizards/com/sun/star/wizards/table')
-rw-r--r--wizards/com/sun/star/wizards/table/PrimaryKeyHandler.java9
1 files changed, 1 insertions, 8 deletions
diff --git a/wizards/com/sun/star/wizards/table/PrimaryKeyHandler.java b/wizards/com/sun/star/wizards/table/PrimaryKeyHandler.java
index 0fa3e29888ad..64b811403b8c 100644
--- a/wizards/com/sun/star/wizards/table/PrimaryKeyHandler.java
+++ b/wizards/com/sun/star/wizards/table/PrimaryKeyHandler.java
@@ -60,7 +60,7 @@ public class PrimaryKeyHandler implements XFieldSelectionListener
{
this.CurUnoDialog = _CurUnoDialog;
curTableDescriptor = _curTableDescriptor;
- bAutoPrimaryKeysupportsAutoIncrmentation = isAutoPrimeKeyAutoIncrementationsupported();
+ bAutoPrimaryKeysupportsAutoIncrmentation = curTableDescriptor.oTypeInspector.isAutoIncrementationSupported();
short curtabindex = (short) ((TableWizard.SOPRIMARYKEYPAGE * 100) - 20);
Integer IPRIMEKEYSTEP = Integer.valueOf(TableWizard.SOPRIMARYKEYPAGE);
final String sExplanations = CurUnoDialog.m_oResource.getResText(UIConsts.RID_TABLE + 26);
@@ -245,13 +245,6 @@ public class PrimaryKeyHandler implements XFieldSelectionListener
togglePrimeKeyFields();
}
- private boolean isAutoPrimeKeyAutoIncrementationsupported()
- {
- TypeInspector.TypeInfo aAutoPrimeTypeInfo;
- aAutoPrimeTypeInfo = curTableDescriptor.oTypeInspector.findAutomaticPrimaryKeyType();
- return aAutoPrimeTypeInfo.bisAutoIncrementable;
- }
-
public boolean iscompleted()
{
if (chkcreatePrimaryKey.getState() == 0)