summaryrefslogtreecommitdiff
path: root/tools
diff options
context:
space:
mode:
authorNoel Grandin <noel@peralex.com>2015-12-18 09:37:44 +0200
committerNoel Grandin <noel@peralex.com>2015-12-21 10:20:31 +0200
commite18b08363a939b35e7f5dc435e606d2c62bddebd (patch)
tree6318e03a67fd2dfbbd29b88b3de36ad7e9fd6292 /tools
parent20ff8cc5c3534d149b18b9776ab964324e70fdfd (diff)
loplugin:unusedmethods
Change-Id: Ifafdaf6da0225f244853a0042a6458643b570623
Diffstat (limited to 'tools')
-rw-r--r--tools/Library_tl.mk1
-rw-r--r--tools/source/misc/appendunixshellword.cxx69
2 files changed, 0 insertions, 70 deletions
diff --git a/tools/Library_tl.mk b/tools/Library_tl.mk
index 65ba17c63303..2bca4a53424e 100644
--- a/tools/Library_tl.mk
+++ b/tools/Library_tl.mk
@@ -68,7 +68,6 @@ $(eval $(call gb_Library_add_exception_objects,tl,\
tools/source/memtools/mempool \
tools/source/memtools/multisel \
tools/source/memtools/unqidx \
- tools/source/misc/appendunixshellword \
tools/source/misc/cpuid \
tools/source/misc/extendapplicationenvironment \
tools/source/misc/getprocessworkingdir \
diff --git a/tools/source/misc/appendunixshellword.cxx b/tools/source/misc/appendunixshellword.cxx
deleted file mode 100644
index bce043c93952..000000000000
--- a/tools/source/misc/appendunixshellword.cxx
+++ /dev/null
@@ -1,69 +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 <sal/config.h>
-
-#if defined UNX
-
-#include <cstddef>
-
-#include <osl/diagnose.h>
-#include <rtl/strbuf.hxx>
-#include <rtl/string.h>
-#include <rtl/string.hxx>
-#include <sal/types.h>
-#include <tools/appendunixshellword.hxx>
-
-namespace tools {
-
-void appendUnixShellWord(
- OStringBuffer * accumulator, OString const & text)
-{
- OSL_ASSERT(accumulator != nullptr);
- if (text.isEmpty()) {
- accumulator->append("''");
- } else {
- bool quoted = false;
- for (sal_Int32 i = 0; i < text.getLength(); ++i) {
- char c = text[i];
- if (c == '\'') {
- if (quoted) {
- accumulator->append('\'');
- quoted = false;
- }
- accumulator->append("\\'");
- } else {
- if (!quoted) {
- accumulator->append('\'');
- quoted = true;
- }
- accumulator->append(c);
- }
- }
- if (quoted) {
- accumulator->append('\'');
- }
- }
-}
-
-}
-
-#endif
-
-/* vim:set shiftwidth=4 softtabstop=4 expandtab: */