From e989d167485e1e15d0aedef600ee450f01382382 Mon Sep 17 00:00:00 2001 From: Michael Meeks Date: Wed, 19 Sep 2012 18:38:27 +0100 Subject: dung out no longer needed initUCBHelper methods; thanks to sberg. --- ucbhelper/source/client/contentbroker.cxx | 58 ------------------------------- 1 file changed, 58 deletions(-) delete mode 100644 ucbhelper/source/client/contentbroker.cxx (limited to 'ucbhelper/source') diff --git a/ucbhelper/source/client/contentbroker.cxx b/ucbhelper/source/client/contentbroker.cxx deleted file mode 100644 index 4af05c672fe3..000000000000 --- a/ucbhelper/source/client/contentbroker.cxx +++ /dev/null @@ -1,58 +0,0 @@ -/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */ -/* - * This file is part of the LibreOffice project. - * - * This Source Code Form is subject to the terms of the Mozilla Public - * License, v. 2.0. If a copy of the MPL was not distributed with this - * file, You can obtain one at http://mozilla.org/MPL/2.0/. - * - * This file incorporates work covered by the following license notice: - * - * Licensed to the Apache Software Foundation (ASF) under one or more - * contributor license agreements. See the NOTICE file distributed - * with this work for additional information regarding copyright - * ownership. The ASF licenses this file to you under the Apache - * License, Version 2.0 (the "License"); you may not use this file - * except in compliance with the License. You may obtain a copy of - * the License at http://www.apache.org/licenses/LICENSE-2.0 . - */ - -#include "sal/config.h" - -#ifdef ANDROID - -#include -#include -#include - -using namespace com::sun::star::ucb; -using namespace com::sun::star::uno; - -//TODO: Is this relevant still? -extern "C" __attribute__ ((visibility("default"))) void -InitUCBHelper() -{ - Reference< XComponentContext > xCtx; - try - { - xCtx = ::cppu::defaultBootstrap_InitialComponentContext(); - } - catch( Exception& ) - { - } - - if( !xCtx.is() ) - { - fprintf( stderr, - "Could not bootstrap UNO, installation must be in disorder. Exiting.\n" ); - exit( 1 ); - } - - // Create UCB (for backwards compatibility, in case some code still uses - // plain createInstance w/o args directly to obtain an instance): - UniversalContentBroker::create( xCtx ); -} - -#endif - -/* vim:set shiftwidth=4 softtabstop=4 expandtab: */ -- cgit v1.2.3