From 9eb03883eef93757609a984c6cb33a709b41c81c Mon Sep 17 00:00:00 2001
From: Andras Timar <atimar@suse.com>
Date: Sat, 30 Jul 2011 23:38:48 +0200
Subject: remove unused menu code

---
 extensions/source/bibliography/bibload.cxx | 27 ---------------------
 extensions/source/bibliography/menu.src    | 39 ------------------------------
 2 files changed, 66 deletions(-)
 delete mode 100644 extensions/source/bibliography/menu.src

(limited to 'extensions')

diff --git a/extensions/source/bibliography/bibload.cxx b/extensions/source/bibliography/bibload.cxx
index 939e99ac117c..89c3d7d51952 100644
--- a/extensions/source/bibliography/bibload.cxx
+++ b/extensions/source/bibliography/bibload.cxx
@@ -279,33 +279,6 @@ void BibliographyLoader::loadView(const Reference< XFrame > & rFrame, const rtl:
     if(!m_pBibMod)
         m_pBibMod = OpenBibModul();
 
-/*
-    //create the menu
-    ResMgr* pResMgr = (*m_pBibMod)->GetResMgr();
-    INetURLObject aEntry( URIHelper::SmartRelToAbs(pResMgr->GetFileName()) );
-    String aMenuRes( RTL_CONSTASCII_USTRINGPARAM( "private:resource/" ));
-    aMenuRes += ( aEntry.GetName() += '/' );
-    aMenuRes+=String::CreateFromInt32(RID_MAIN_MENU);
-
-    util::URL aURL;
-    aURL.Complete = aMenuRes;
-
-    Reference< XMultiServiceFactory >  xMgr = comphelper::getProcessServiceFactory();
-    Reference< util::XURLTransformer >  xTrans ( xMgr->createInstance( C2U("com.sun.star.util.URLTransformer") ), UNO_QUERY );
-    if( xTrans.is() )
-    {
-        // Datei laden
-        xTrans->parseStrict( aURL );
-
-        Reference< XDispatchProvider >  xProv( rFrame, UNO_QUERY );
-        if ( xProv.is() )
-        {
-            Reference< XDispatch >  aDisp = xProv->queryDispatch( aURL, C2U("_menubar"), 12 );
-            if ( aDisp.is() )
-                aDisp->dispatch( aURL, Sequence<PropertyValue>() );
-        }
-    }
-*/
     m_pDatMan = (*m_pBibMod)->createDataManager();
     m_xDatMan = m_pDatMan;
     BibDBDescriptor aBibDesc = BibModul::GetConfig()->GetBibliographyURL();
diff --git a/extensions/source/bibliography/menu.src b/extensions/source/bibliography/menu.src
deleted file mode 100644
index a2a41ed06def..000000000000
--- a/extensions/source/bibliography/menu.src
+++ /dev/null
@@ -1,39 +0,0 @@
-/*************************************************************************
- *
- * 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
- * <http://www.openoffice.org/license.html>
- * for a copy of the LGPLv3 License.
- *
- ************************************************************************/
-
-#include <svl/solar.hrc>
-#include <svx/svxids.hrc>
-#include <svx/globlmn.hrc>
-#include "bibliography.hrc"
-#include "bib.hrc"
-
-/*
-
-The menu bar resource has become obsolete. You find the menu bar definition
-now at: <project>/uiconfig/sbibliography/menubar/menubar.xml
-
-*/
-- 
cgit