[Libreoffice-commits] core.git: slideshow/inc slideshow/Library_slideshow.mk slideshow/manifest.txt slideshow/source

Caolán McNamara caolanm at redhat.com
Wed Feb 24 09:19:20 UTC 2016


 slideshow/Library_slideshow.mk                   |    6 -
 slideshow/inc/pch/precompiled_slideshow.hxx      |    5 -
 slideshow/manifest.txt                           |    2 
 slideshow/source/engine/shapes/shapeimporter.cxx |    1 
 slideshow/source/engine/sp_debug.cxx             |   93 -----------------------
 5 files changed, 1 insertion(+), 106 deletions(-)

New commits:
commit 4e354737908b89713297ebf5216eb44f3d9ae990
Author: Caolán McNamara <caolanm at redhat.com>
Date:   Wed Feb 24 09:18:18 2016 +0000

    remove boost/shared_ptr foo
    
    Change-Id: Id208712f80e820f23d898359a4d58297a09e5a77

diff --git a/slideshow/Library_slideshow.mk b/slideshow/Library_slideshow.mk
index 3c37752..af28616 100644
--- a/slideshow/Library_slideshow.mk
+++ b/slideshow/Library_slideshow.mk
@@ -150,10 +150,4 @@ $(eval $(call gb_Library_add_exception_objects,slideshow,\
     slideshow/source/engine/wakeupevent \
 ))
 
-ifneq ($(strip $(debug)$(DEBUG)),)
-$(eval $(call gb_Library_add_exception_objects,slideshow,\
-    slideshow/source/engine/sp_debug \
-))
-endif
-
 # vim: set noet sw=4 ts=4:
diff --git a/slideshow/inc/pch/precompiled_slideshow.hxx b/slideshow/inc/pch/precompiled_slideshow.hxx
index 8537489..bf9f9d0 100644
--- a/slideshow/inc/pch/precompiled_slideshow.hxx
+++ b/slideshow/inc/pch/precompiled_slideshow.hxx
@@ -52,13 +52,8 @@
 #include <typeinfo>
 #include <utility>
 #include <vector>
-#include <boost/enable_shared_from_this.hpp>
-#include <boost/intrusive_ptr.hpp>
-#include <boost/mem_fn.hpp>
 #include <boost/noncopyable.hpp>
 #include <boost/optional.hpp>
-#include <boost/shared_ptr.hpp>
-#include <boost/weak_ptr.hpp>
 #include <osl/diagnose.h>
 #include <osl/diagnose.hxx>
 #include <osl/doublecheckedlocking.h>
diff --git a/slideshow/manifest.txt b/slideshow/manifest.txt
index 12d2dae..5bd62df 100644
--- a/slideshow/manifest.txt
+++ b/slideshow/manifest.txt
@@ -43,7 +43,7 @@ Coding style:
  - header guards follow this scheme: INCLUDED_SLIDESHOW_<CLASSNAME>_HXX
 
  - module-external headers, and system headers are included like this:
-   #include <module/header.hxx> or #include <boost/shared_ptr.hpp>. 
+   #include <module/header.hxx>.
    module-internal headers are included like this:
    #include "header.hxx"
    No external header guards are used in cxx files
diff --git a/slideshow/source/engine/shapes/shapeimporter.cxx b/slideshow/source/engine/shapes/shapeimporter.cxx
index 79d4392..a06b2dc 100644
--- a/slideshow/source/engine/shapes/shapeimporter.cxx
+++ b/slideshow/source/engine/shapes/shapeimporter.cxx
@@ -51,7 +51,6 @@
 #include "tools.hxx"
 #include "slideshowcontext.hxx"
 
-#include <boost/shared_ptr.hpp>
 #include <memory>
 
 using namespace com::sun::star;
diff --git a/slideshow/source/engine/sp_debug.cxx b/slideshow/source/engine/sp_debug.cxx
deleted file mode 100644
index b5ef471..0000000
--- a/slideshow/source/engine/sp_debug.cxx
+++ /dev/null
@@ -1,93 +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 .
- */
-
-
-//  sp_collector.cpp
-
-//  Copyright (c) 2002, 2003 Peter Dimov
-
-//  Permission to copy, use, modify, sell and distribute this software
-//  is granted provided this copyright notice appears in all copies.
-//  This software is provided "as is" without express or implied
-//  warranty, and with no claim as to its suitability for any purpose.
-
-
-#if defined(BOOST_SP_ENABLE_DEBUG_HOOKS)
-
-#include <boost/assert.hpp>
-#include <boost/detail/lightweight_mutex.hpp>
-#include <boost/shared_ptr.hpp>
-#include <canvas/debug.hxx>
-#include <cstdlib>
-#include <map>
-#include <memory>
-#include <deque>
-#include <iostream>
-
-typedef std::map< void const *, std::pair<void *, size_t> > map_type;
-
-static map_type & get_map()
-{
-    static map_type m;
-    return m;
-}
-
-typedef boost::detail::lightweight_mutex mutex_type;
-
-static mutex_type & get_mutex()
-{
-    static mutex_type m;
-    return m;
-}
-
-static void * init_mutex_before_main = &get_mutex();
-
-
-// debug hooks
-
-namespace boost
-{
-
-void sp_scalar_constructor_hook(void * px, std::size_t size, void * pn)
-{
-#ifdef BOOST_HAS_THREADS
-
-    mutex_type::scoped_lock lock(get_mutex());
-
-#endif
-
-    get_map()[pn] = std::make_pair(px, size);
-}
-
-void sp_scalar_destructor_hook(void *, std::size_t, void * pn)
-{
-#ifdef BOOST_HAS_THREADS
-
-    mutex_type::scoped_lock lock(get_mutex());
-
-#endif
-
-    get_map().erase(pn);
-}
-
-} // namespace boost
-
-#endif // defined(BOOST_SP_ENABLE_DEBUG_HOOKS)
-
-/* vim:set shiftwidth=4 softtabstop=4 expandtab: */


More information about the Libreoffice-commits mailing list