summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorNoel Grandin <noel.grandin@collabora.co.uk>2023-11-14 16:01:30 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2023-11-15 06:56:06 +0100
commit48e4a871d926b534eb6131d16d04d68b151b2847 (patch)
treeacff758f6a02a4f806b8bbd6b6f2a094d68006a6 /include
parent92e5898fa9ffa4dd8742f5f26e790563feef286e (diff)
loplugin:unusedmethods
Change-Id: I1e125bbd388953491b3f869641484fea737d39ab Reviewed-on: https://gerrit.libreoffice.org/c/core/+/159423 Tested-by: Jenkins Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'include')
-rw-r--r--include/tools/urlobj.hxx12
-rw-r--r--include/ucbhelper/fd_inputstream.hxx91
-rw-r--r--include/ucbhelper/proxydecider.hxx21
-rw-r--r--include/unotools/securityoptions.hxx2
-rw-r--r--include/vcl/bitmap.hxx9
5 files changed, 0 insertions, 135 deletions
diff --git a/include/tools/urlobj.hxx b/include/tools/urlobj.hxx
index 3f5dd649b2ec..7e7c4a2aafc6 100644
--- a/include/tools/urlobj.hxx
+++ b/include/tools/urlobj.hxx
@@ -427,9 +427,6 @@ public:
inline bool SetPass(std::u16string_view rThePassword);
- inline bool SetUserAndPass(std::u16string_view rTheUser,
- std::u16string_view rThePassword);
-
// Host and Port:
bool HasPort() const { return m_aPort.isPresent(); }
@@ -1263,15 +1260,6 @@ inline bool INetURLObject::SetPass(std::u16string_view rThePassword)
setPassword(rThePassword, RTL_TEXTENCODING_UTF8);
}
-inline bool INetURLObject::SetUserAndPass(std::u16string_view rTheUser,
- std::u16string_view rThePassword)
-{
- return setUser(rTheUser, RTL_TEXTENCODING_UTF8)
- && (rThePassword.empty() ?
- clearPassword() :
- setPassword(rThePassword, RTL_TEXTENCODING_UTF8));
-}
-
inline bool INetURLObject::SetParam(std::u16string_view rTheQuery,
EncodeMechanism eMechanism,
rtl_TextEncoding eCharset)
diff --git a/include/ucbhelper/fd_inputstream.hxx b/include/ucbhelper/fd_inputstream.hxx
deleted file mode 100644
index 5035ecd906dd..000000000000
--- a/include/ucbhelper/fd_inputstream.hxx
+++ /dev/null
@@ -1,91 +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_UCBHELPER_FD_INPUTSTREAM_HXX
-#define INCLUDED_UCBHELPER_FD_INPUTSTREAM_HXX
-
-#include <osl/file.h>
-#include <com/sun/star/io/XInputStream.hpp>
-#include <com/sun/star/io/XSeekable.hpp>
-#include <cppuhelper/implbase.hxx>
-#include <ucbhelper/ucbhelperdllapi.h>
-#include <mutex>
-
-namespace ucbhelper
-{
- typedef cppu::WeakImplHelper<
- css::io::XInputStream,
- css::io::XSeekable > FdInputStream_Base;
-
- /** Implements a seekable InputStream
- * working on a buffer.
- */
- class UCBHELPER_DLLPUBLIC FdInputStream final : public FdInputStream_Base
- {
- public:
-
- /** Defines the storage kind found
- * on which the inputstream acts.
- */
- FdInputStream(oslFileHandle tmpfl);
-
- virtual ~FdInputStream() override;
-
- virtual sal_Int32 SAL_CALL
- readBytes(css::uno::Sequence< sal_Int8 >& aData,
- sal_Int32 nBytesToRead) override;
-
- virtual sal_Int32 SAL_CALL
- readSomeBytes(css::uno::Sequence< sal_Int8 >& aData,
- sal_Int32 nMaxBytesToRead ) override;
-
- virtual void SAL_CALL
- skipBytes(sal_Int32 nBytesToSkip) override;
-
- virtual sal_Int32 SAL_CALL
- available() override;
-
- virtual void SAL_CALL
- closeInput() override;
-
-
- /** XSeekable
- */
-
- virtual void SAL_CALL
- seek(sal_Int64 location) override;
-
-
- virtual sal_Int64 SAL_CALL
- getPosition() override;
-
-
- virtual sal_Int64 SAL_CALL
- getLength() override;
-
- private:
- std::mutex m_aMutex;
- oslFileHandle m_tmpfl;
- sal_uInt64 m_nLength;
- };
-}
-
-#endif
-
-/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/include/ucbhelper/proxydecider.hxx b/include/ucbhelper/proxydecider.hxx
index 3fe3025833ce..2c518dd450a9 100644
--- a/include/ucbhelper/proxydecider.hxx
+++ b/include/ucbhelper/proxydecider.hxx
@@ -82,27 +82,6 @@ public:
~InternetProxyDecider();
/**
- * Informs whether a proxy server should be used.
- *
- * @param rProtocol contains the internet protocol to be used to
- * access the server (i.e. "ftp", "http"). The protocol string
- * is handled case-insensitive and must not be empty.
- * @param rHost contains the name of the server that should be accessed.
- * This parameter might be left empty. In this case the
- * implementation will return whether a proxy is configured
- * for the given protocol.
- * @param nPort contains the port of the server that should be accessed.
- * If host is not empty this parameter must always contain a valid
- * port number, for instance the default port for the requested
- * protocol(i.e. 80 or http).
- * @return true if a proxy server should be used, false otherwise.
- */
- bool
- shouldUseProxy( const OUString & rProtocol,
- const OUString & rHost,
- sal_Int32 nPort ) const;
-
- /**
* Returns the proxy server to be used.
*
* @param rProtocol contains the internet protocol to be used to
diff --git a/include/unotools/securityoptions.hxx b/include/unotools/securityoptions.hxx
index 3e462c9e5f6c..53f16de50e69 100644
--- a/include/unotools/securityoptions.hxx
+++ b/include/unotools/securityoptions.hxx
@@ -147,8 +147,6 @@ namespace SvtSecurityOptions
UNOTOOLS_DLLPUBLIC bool IsOptionSet ( EOption eOption );
UNOTOOLS_DLLPUBLIC void SetOption ( EOption eOption, bool bValue );
- UNOTOOLS_DLLPUBLIC bool IsInfobarSecurityWarningEnable();
-
} // namespace SvtSecurityOptions
// map personal info strings, e.g. authors to 1, 2, 3... for removing personal info
diff --git a/include/vcl/bitmap.hxx b/include/vcl/bitmap.hxx
index b0a26700d6f5..f8123b177932 100644
--- a/include/vcl/bitmap.hxx
+++ b/include/vcl/bitmap.hxx
@@ -240,15 +240,6 @@ public:
const tools::Rectangle& rRectSrc,
const Bitmap* pBmpSrc );
- /** Perform boolean OR operation with another bitmap
-
- @param rMask
- The mask bitmap in the selected combine operation
-
- @return true, if the operation was completed successfully.
- */
- bool CombineOr( const Bitmap& rMask );
-
/** Alpha-blend the given bitmap against a specified uniform
background color.