From bf621a2e28b1e9ff4669a52315b2234a44200605 Mon Sep 17 00:00:00 2001 From: Stephan Bergmann Date: Wed, 9 Apr 2014 16:13:32 +0200 Subject: Remove unused MakeVariable ...unused ever since at least fd069bee7e57ad529c3c0974559fd2d84ec3151a "initial import." Change-Id: I6ec792b68ce6b13b1cf074d9719a23daf3356e66 --- sfx2/source/appl/appbas.cxx | 25 ------------------------- sfx2/source/doc/objxtor.cxx | 1 - sfx2/source/inc/appbas.hxx | 37 ------------------------------------- sfx2/source/view/viewfrm.cxx | 1 - 4 files changed, 64 deletions(-) delete mode 100644 sfx2/source/inc/appbas.hxx (limited to 'sfx2') diff --git a/sfx2/source/appl/appbas.cxx b/sfx2/source/appl/appbas.cxx index 510a4796ed97..0501d5a94dba 100644 --- a/sfx2/source/appl/appbas.cxx +++ b/sfx2/source/appl/appbas.cxx @@ -65,7 +65,6 @@ #include #include #include "appdata.hxx" -#include "appbas.hxx" #include #include #include @@ -94,30 +93,6 @@ sal_uInt16 SfxApplication::SaveBasicAndDialogContainer() const return 0; } - - -SbxVariable* MakeVariable( StarBASIC *pBas, SbxObject *pObject, - const char *pName, sal_uInt32 nSID, SbxDataType eType, SbxClassType eClassType ) -{ -#ifdef DISABLE_SCRIPTING - (void) pBas; - (void) pObject; - (void) pName; - (void) nSID; - (void) eType; - (void) eClassType; - return 0; -#else - SbxVariable *pVar = pBas->Make( OUString::createFromAscii(pName), eClassType, eType ); //SbxCLASS_PROPERTY - pVar->SetUserData( nSID ); - pVar->SetFlag( SBX_DONTSTORE ); - pObject->StartListening( pVar->GetBroadcaster() ); - return pVar; -#endif -} - - - BasicManager* SfxApplication::GetBasicManager() { #ifdef DISABLE_SCRIPTING diff --git a/sfx2/source/doc/objxtor.cxx b/sfx2/source/doc/objxtor.cxx index ba859764e582..6f481d8154d5 100644 --- a/sfx2/source/doc/objxtor.cxx +++ b/sfx2/source/doc/objxtor.cxx @@ -81,7 +81,6 @@ #include #include #include "objshimp.hxx" -#include "appbas.hxx" #include "sfxtypes.hxx" #include #include diff --git a/sfx2/source/inc/appbas.hxx b/sfx2/source/inc/appbas.hxx deleted file mode 100644 index ebedd3ce5a2a..000000000000 --- a/sfx2/source/inc/appbas.hxx +++ /dev/null @@ -1,37 +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 . - */ -#ifndef INCLUDED_SFX2_SOURCE_INC_APPBAS_HXX -#define INCLUDED_SFX2_SOURCE_INC_APPBAS_HXX - - -#include - -class StarBASIC; -class SbxObject; - - - -SbxVariable* MakeVariable( StarBASIC *pBas, SbxObject *pObject, - const char *pName, sal_uIntPtr nSID, SbxDataType eType=SbxOBJECT, - SbxClassType = SbxCLASS_PROPERTY ); - - -#endif - -/* vim:set shiftwidth=4 softtabstop=4 expandtab: */ diff --git a/sfx2/source/view/viewfrm.cxx b/sfx2/source/view/viewfrm.cxx index 9ed802172c63..ca037c03ef24 100644 --- a/sfx2/source/view/viewfrm.cxx +++ b/sfx2/source/view/viewfrm.cxx @@ -119,7 +119,6 @@ using ::com::sun::star::container::XIndexContainer; #include #include #include -#include "appbas.hxx" #include #include #include -- cgit