From 34bcf9b498bccb5c924f4cec850ff15d88df6f07 Mon Sep 17 00:00:00 2001 From: Noel Grandin Date: Wed, 13 Aug 2014 10:08:31 +0200 Subject: java: remove dead methods found by UCDetector Change-Id: I219caa8e680dba5a395541a778df6144841c4dde --- .../DevelopersGuide/Drawing/PageHelper.java | 32 ++-------------------- 1 file changed, 3 insertions(+), 29 deletions(-) (limited to 'odk/examples/DevelopersGuide/Drawing/PageHelper.java') diff --git a/odk/examples/DevelopersGuide/Drawing/PageHelper.java b/odk/examples/DevelopersGuide/Drawing/PageHelper.java index b6bb684453ed..cbf8d9cdcfd3 100644 --- a/odk/examples/DevelopersGuide/Drawing/PageHelper.java +++ b/odk/examples/DevelopersGuide/Drawing/PageHelper.java @@ -95,16 +95,7 @@ public class PageHelper return xDrawPages.insertNewByIndex( nIndex ); } - /** removes the given page - */ - static public void removeDrawPage( XComponent xComponent, XDrawPage xDrawPage ) - { - XDrawPagesSupplier xDrawPagesSupplier = - UnoRuntime.queryInterface( - XDrawPagesSupplier.class, xComponent ); - XDrawPages xDrawPages = xDrawPagesSupplier.getDrawPages(); - xDrawPages.remove( xDrawPage ); - } + /** get size of the given page */ @@ -156,26 +147,9 @@ public class PageHelper return xDrawPages.insertNewByIndex( nIndex ); } - /** removes the given page - */ - static public void removeMasterPage( XComponent xComponent, XDrawPage xDrawPage ) - { - XMasterPagesSupplier xMasterPagesSupplier = - UnoRuntime.queryInterface( - XMasterPagesSupplier.class, xComponent ); - XDrawPages xDrawPages = xMasterPagesSupplier.getMasterPages(); - xDrawPages.remove( xDrawPage ); - } - /** return the corresponding masterpage for the giving drawpage - */ - static public XDrawPage getMasterPage( XDrawPage xDrawPage ) - { - XMasterPageTarget xMasterPageTarget = - UnoRuntime.queryInterface( - XMasterPageTarget.class, xDrawPage ); - return xMasterPageTarget.getMasterPage(); - } + + /** sets given masterpage at the drawpage */ -- cgit