summaryrefslogtreecommitdiff
path: root/odk/examples/DevelopersGuide/Drawing/PageHelper.java
diff options
context:
space:
mode:
authorNoel Grandin <noel@peralex.com>2014-08-13 10:08:31 +0200
committerNoel Grandin <noel@peralex.com>2014-08-13 10:24:10 +0200
commit34bcf9b498bccb5c924f4cec850ff15d88df6f07 (patch)
tree4d9604ec8c3b73639338ec45a0618b5daa5cf0ed /odk/examples/DevelopersGuide/Drawing/PageHelper.java
parent347926e8e57c1825261daa46c1886aa2ebf9571b (diff)
java: remove dead methods
found by UCDetector Change-Id: I219caa8e680dba5a395541a778df6144841c4dde
Diffstat (limited to 'odk/examples/DevelopersGuide/Drawing/PageHelper.java')
-rw-r--r--odk/examples/DevelopersGuide/Drawing/PageHelper.java32
1 files changed, 3 insertions, 29 deletions
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
*/