From 8df9025eac81d8a65162c396d28d176c084d16b3 Mon Sep 17 00:00:00 2001 From: Caolán McNamara Date: Wed, 21 Sep 2011 23:15:37 +0100 Subject: callcatcher: remove unused code --- linguistic/Library_lng.mk | 1 - linguistic/inc/thesdta.hxx | 84 ------------------------------------------- linguistic/source/thesdta.cxx | 82 ------------------------------------------ 3 files changed, 167 deletions(-) delete mode 100644 linguistic/inc/thesdta.hxx delete mode 100644 linguistic/source/thesdta.cxx diff --git a/linguistic/Library_lng.mk b/linguistic/Library_lng.mk index 69f48edea7d6..847988108782 100644 --- a/linguistic/Library_lng.mk +++ b/linguistic/Library_lng.mk @@ -85,7 +85,6 @@ $(eval $(call gb_Library_add_exception_objects,lng,\ linguistic/source/spelldsp \ linguistic/source/spelldta \ linguistic/source/thesdsp \ - linguistic/source/thesdta \ )) # vim: set noet sw=4 ts=4: diff --git a/linguistic/inc/thesdta.hxx b/linguistic/inc/thesdta.hxx deleted file mode 100644 index f6922dacc4fa..000000000000 --- a/linguistic/inc/thesdta.hxx +++ /dev/null @@ -1,84 +0,0 @@ -/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */ -/************************************************************************* - * - * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. - * - * Copyright 2000, 2010 Oracle and/or its affiliates. - * - * OpenOffice.org - a multi-platform office productivity suite - * - * This file is part of OpenOffice.org. - * - * OpenOffice.org is free software: you can redistribute it and/or modify - * it under the terms of the GNU Lesser General Public License version 3 - * only, as published by the Free Software Foundation. - * - * OpenOffice.org is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Lesser General Public License version 3 for more details - * (a copy is included in the LICENSE file that accompanied this code). - * - * You should have received a copy of the GNU Lesser General Public License - * version 3 along with OpenOffice.org. If not, see - * - * for a copy of the LGPLv3 License. - * - ************************************************************************/ - -#ifndef _LINGUISTIC_THESDTA_HXX_ -#define _LINGUISTIC_THESDTA_HXX_ - - -#include - -#include // CPPU_CURRENT_LANGUAGE_BINDING_NAME macro, which specify the environment type -#include // helper for implementations - - -namespace linguistic -{ - - - -class ThesaurusMeaning : - public cppu::WeakImplHelper1 - < - ::com::sun::star::linguistic2::XMeaning - > -{ - -protected: - ::rtl::OUString aText; // one of the found 'meanings' for the looked up text - ::rtl::OUString aLookUpText; // text that was looked up in the thesaurus - sal_Int16 nLookUpLanguage; // language of the text that was looked up - - // disallow copy-constructor and assignment-operator for now - ThesaurusMeaning(const ThesaurusMeaning &); - ThesaurusMeaning & operator = (const ThesaurusMeaning &); - -public: - ThesaurusMeaning(const ::rtl::OUString &rText, - const ::rtl::OUString &rLookUpText, sal_Int16 nLookUpLang ); - virtual ~ThesaurusMeaning(); - - // XMeaning - virtual ::rtl::OUString SAL_CALL - getMeaning() - throw(::com::sun::star::uno::RuntimeException); - virtual ::com::sun::star::uno::Sequence< ::rtl::OUString > SAL_CALL - querySynonyms() - throw(::com::sun::star::uno::RuntimeException) = 0; - - // non-interface specific functions - const ::rtl::OUString & getLookUpText() const { return aLookUpText; } - short getLookUpLanguage() const { return nLookUpLanguage; } -}; - - - -} // namespace linguistic - -#endif - -/* vim:set shiftwidth=4 softtabstop=4 expandtab: */ diff --git a/linguistic/source/thesdta.cxx b/linguistic/source/thesdta.cxx deleted file mode 100644 index 218e5ce2af89..000000000000 --- a/linguistic/source/thesdta.cxx +++ /dev/null @@ -1,82 +0,0 @@ -/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */ -/************************************************************************* - * - * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. - * - * Copyright 2000, 2010 Oracle and/or its affiliates. - * - * OpenOffice.org - a multi-platform office productivity suite - * - * This file is part of OpenOffice.org. - * - * OpenOffice.org is free software: you can redistribute it and/or modify - * it under the terms of the GNU Lesser General Public License version 3 - * only, as published by the Free Software Foundation. - * - * OpenOffice.org is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Lesser General Public License version 3 for more details - * (a copy is included in the LICENSE file that accompanied this code). - * - * You should have received a copy of the GNU Lesser General Public License - * version 3 along with OpenOffice.org. If not, see - * - * for a copy of the LGPLv3 License. - * - ************************************************************************/ - -// MARKER(update_precomp.py): autogen include statement, do not remove -#include "precompiled_linguistic.hxx" -#include -#include - -#include - -#include "thesdta.hxx" - -using namespace osl; -using namespace com::sun::star; -using namespace com::sun::star::beans; -using namespace com::sun::star::lang; -using namespace com::sun::star::uno; -using namespace com::sun::star::linguistic2; -using namespace linguistic; - -using ::rtl::OUString; - -namespace linguistic -{ - - - -ThesaurusMeaning::ThesaurusMeaning(const OUString &rText, - const OUString &rLookUpText, sal_Int16 nLookUpLang ) : - aText (rText), - aLookUpText (rLookUpText), - nLookUpLanguage (nLookUpLang) -{ -} - -ThesaurusMeaning::~ThesaurusMeaning() -{ -} - -OUString SAL_CALL - ThesaurusMeaning::getMeaning() throw(RuntimeException) -{ - MutexGuard aGuard( GetLinguMutex() ); - return aText; -} - -/* -uno::Sequence< OUString > SAL_CALL ThesaurusMeaning::querySynonyms() - throw(RuntimeException) -{ -} -*/ - - -} // namespace linguistic - -/* vim:set shiftwidth=4 softtabstop=4 expandtab: */ -- cgit