summaryrefslogtreecommitdiff
path: root/tools
diff options
context:
space:
mode:
authorNoel Grandin <noel.grandin@collabora.co.uk>2017-08-24 22:14:27 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2017-08-25 09:04:26 +0200
commit1b694dad643334ec1bab3f823dcd68f44a05ebe3 (patch)
treec1b6045ae9d5497e2d28642b95b2d88f9cc14d81 /tools
parentde2ac128da025502c533f8cede5862e054dd9c44 (diff)
loplugin:unusedmethods
Change-Id: Iaaf9092ec4d6189492906648b84494d087fed81f Reviewed-on: https://gerrit.libreoffice.org/41539 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'tools')
-rw-r--r--tools/Library_tl.mk1
-rw-r--r--tools/source/memtools/unqidx.cxx48
-rw-r--r--tools/source/stream/stream.cxx12
3 files changed, 0 insertions, 61 deletions
diff --git a/tools/Library_tl.mk b/tools/Library_tl.mk
index 9b3a9d984bd6..040490ed7f05 100644
--- a/tools/Library_tl.mk
+++ b/tools/Library_tl.mk
@@ -66,7 +66,6 @@ $(eval $(call gb_Library_add_exception_objects,tl,\
tools/source/inet/inetstrm \
tools/source/memtools/mempool \
tools/source/memtools/multisel \
- tools/source/memtools/unqidx \
tools/source/misc/cpuid \
tools/source/misc/extendapplicationenvironment \
tools/source/ref/globname \
diff --git a/tools/source/memtools/unqidx.cxx b/tools/source/memtools/unqidx.cxx
deleted file mode 100644
index 0ad58921efb2..000000000000
--- a/tools/source/memtools/unqidx.cxx
+++ /dev/null
@@ -1,48 +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 <tools/unqidx.hxx>
-
-UniqueIndexImpl::Index const UniqueIndexImpl::IndexNotFound(SAL_MAX_UINT32);
-
-UniqueIndexImpl::Index UniqueIndexImpl::Insert( void* p )
-{
- // NULL-Pointer not allowed
- if ( !p )
- return IndexNotFound;
-
- // Insert the pointer, starting from the current nUniqIndex "hint"
- // and increasing it until a free one is found (this may happen
- // after removals followed by multiple insertions).
- while ( !maMap.emplace(nUniqIndex, p).second )
- ++nUniqIndex;
-
- // Take care of updating hint key for next insertion
- return nUniqIndex++;
-}
-
-void* UniqueIndexImpl::Get( Index nIndex ) const
-{
- std::map<Index, void*>::const_iterator it = maMap.find( nIndex );
- if ( it != maMap.end() )
- return it->second;
- return nullptr;
-}
-
-/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/tools/source/stream/stream.cxx b/tools/source/stream/stream.cxx
index 7de1f413b88b..590e13655bc8 100644
--- a/tools/source/stream/stream.cxx
+++ b/tools/source/stream/stream.cxx
@@ -1537,18 +1537,6 @@ void SvStream::SetCryptMaskKey(const OString& rCryptMaskKey)
m_aCryptMaskKey.getLength(), GetVersion());
}
-void SvStream::SyncSvStream( std::size_t nNewStreamPos )
-{
- ClearBuffer();
- SvStream::m_nBufFilePos = nNewStreamPos;
-}
-
-void SvStream::SyncSysStream()
-{
- Flush();
- SeekPos( Tell() );
-}
-
bool SvStream::SetStreamSize(sal_uInt64 const nSize)
{
#ifdef DBG_UTIL