diff options
author | Noel Grandin <noel@peralex.com> | 2017-01-16 16:41:53 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2017-01-17 06:42:52 +0000 |
commit | 10cb59eb914ba722c203242272de244d795a51e8 (patch) | |
tree | e5f6e613bb2adbc3862ca7542ba2544c7c3d3e26 /connectivity/qa | |
parent | 2b458b67ebc3c3291f003f667480a1ccf376637d (diff) |
remove some unused Java code
Change-Id: Ia1663256fc0b92c343ea4ba55a821c969077a0aa
Reviewed-on: https://gerrit.libreoffice.org/33174
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'connectivity/qa')
-rw-r--r-- | connectivity/qa/connectivity/tools/FlatFileDatabase.java | 18 |
1 files changed, 0 insertions, 18 deletions
diff --git a/connectivity/qa/connectivity/tools/FlatFileDatabase.java b/connectivity/qa/connectivity/tools/FlatFileDatabase.java index 4a292c009234..5351ba953ce8 100644 --- a/connectivity/qa/connectivity/tools/FlatFileDatabase.java +++ b/connectivity/qa/connectivity/tools/FlatFileDatabase.java @@ -38,24 +38,6 @@ class FlatFileDatabase extends AbstractDatabase } - protected FlatFileDatabase(final XMultiServiceFactory i_orb, final String i_existingDocumentURL, - final String i_urlSubScheme ) throws Exception - { - super( i_orb, i_existingDocumentURL ); - m_urlSubScheme = i_urlSubScheme; - - final XPropertySet dsProperties = UnoRuntime.queryInterface(XPropertySet.class, m_databaseDocument.getDataSource()); - final String url = (String)dsProperties.getPropertyValue( "URL" ); - final String expectedURLPrefix = "sdbc:" + m_urlSubScheme + ":"; - if ( !url.startsWith( expectedURLPrefix ) ) - throw new IllegalArgumentException( i_existingDocumentURL + " is of wrong type" ); - - final String location = url.substring( expectedURLPrefix.length() ); - m_tableFileLocation = new File( location ); - if ( m_tableFileLocation.isDirectory() ) - throw new IllegalArgumentException( "unsupported table file location (must be a folder)" ); - } - /** * returns a {@link File} which represents the folder where the database's table files reside. */ |