From 988e2a750e9b12bdad519b834083ee7f6794a0b6 Mon Sep 17 00:00:00 2001 From: Markus Mohrhard Date: Tue, 12 Apr 2016 15:10:39 +0200 Subject: remove that unused old code Change-Id: I576f6be6d229e29d0ae35ffb00d118bfd44b5544 --- desktop/source/app/sofficemain.cxx | 28 ---------------------------- 1 file changed, 28 deletions(-) (limited to 'desktop/source/app/sofficemain.cxx') diff --git a/desktop/source/app/sofficemain.cxx b/desktop/source/app/sofficemain.cxx index 8d402fd2506f..e86d901df603 100644 --- a/desktop/source/app/sofficemain.cxx +++ b/desktop/source/app/sofficemain.cxx @@ -142,32 +142,4 @@ extern "C" int DESKTOP_DLLPUBLIC soffice_main() #endif } -#if defined(ANDROID) || defined(IOS) - -extern "C" void PtylTestEncryptionAndExport(const char *pathname) -{ - OUString sUri(pathname, strlen(pathname), RTL_TEXTENCODING_UTF8); - sUri = "file://" + sUri; - - css::uno::Reference loader(css::frame::Desktop::create(cppu::defaultBootstrap_InitialComponentContext()), css::uno::UNO_QUERY); - css::uno::Reference component; - component.set(loader->loadComponentFromURL(sUri, "_default", 0, {})); - - utl::MediaDescriptor media; - media[utl::MediaDescriptor::PROP_FILTERNAME()] <<= OUString("MS Word 2007 XML"); - OUString password("myPassword"); - css::uno::Sequence encryptionData { { "OOXPassword", css::uno::makeAny(password) } }; - media[utl::MediaDescriptor::PROP_ENCRYPTIONDATA()] <<= encryptionData; - - css::uno::Reference model(component, css::uno::UNO_QUERY); - css::uno::Reference storable2(model, css::uno::UNO_QUERY); - OUString saveAsUri(sUri + ".new.docx"); - SAL_INFO("desktop.app", "Trying to store as " << saveAsUri); - OUString testPathName; - osl::File::getSystemPathFromFileURL(saveAsUri+".txt", testPathName); - storable2->storeToURL(saveAsUri, media.getAsConstPropertyValueList()); -} - -#endif - /* vim:set shiftwidth=4 softtabstop=4 expandtab: */ -- cgit