[Libreoffice-commits] .: l10ntools/inc l10ntools/source
Libreoffice Gerrit user
logerrit at kemper.freedesktop.org
Thu Sep 6 22:37:17 PDT 2012
l10ntools/inc/gsicheck.hxx | 26 --------------------------
l10ntools/source/gsicheck.cxx | 11 +++++++++++
l10ntools/source/gsimain.cxx | 19 +++++++++++++++++++
3 files changed, 30 insertions(+), 26 deletions(-)
New commits:
commit 76e0a9a9d9ca5e5ea9df04baa8326688afd1336d
Author: Stephan Bergmann <sbergman at redhat.com>
Date: Fri Sep 7 07:36:38 2012 +0200
-Werror,-Wunused-function
Change-Id: I6736d1295a662527e2bfd12cfbebc0ef4634b397
diff --git a/l10ntools/inc/gsicheck.hxx b/l10ntools/inc/gsicheck.hxx
index 266ea96..a33796c 100644
--- a/l10ntools/inc/gsicheck.hxx
+++ b/l10ntools/inc/gsicheck.hxx
@@ -163,34 +163,8 @@ public:
void LazyOpen();
};
-namespace {
-
sal_Int32 const MAX_GID_LID_LEN = 250;
-rtl::OString copyUpTo(
- rtl::OString const & text, sal_Int32 start, sal_Int32 maximumLength)
-{
- assert(start >= 0 && start <= text.getLength());
- return text.copy(start, std::min(text.getLength() - start, maximumLength));
-}
-
-rtl::OString addSuffix(
- rtl::OString const & pathname, rtl::OString const & suffix)
-{
- sal_Int32 n = pathname.lastIndexOf('.');
- if (n == -1) {
- fprintf(
- stderr,
- ("Error: pathname \"%s\" does not contain dot to add suffix in"
- " front of\n"),
- pathname.getStr());
- exit(EXIT_FAILURE);
- }
- return pathname.replaceAt(n, 0, suffix);
-}
-
-}
-
#endif
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/l10ntools/source/gsicheck.cxx b/l10ntools/source/gsicheck.cxx
index 3a4c0af..082f9ef 100644
--- a/l10ntools/source/gsicheck.cxx
+++ b/l10ntools/source/gsicheck.cxx
@@ -42,6 +42,17 @@
#include "tagtest.hxx"
#include "gsicheck.hxx"
+namespace {
+
+rtl::OString copyUpTo(
+ rtl::OString const & text, sal_Int32 start, sal_Int32 maximumLength)
+{
+ assert(start >= 0 && start <= text.getLength());
+ return text.copy(start, std::min(text.getLength() - start, maximumLength));
+}
+
+}
+
/*****************************************************************************/
void PrintMessage( rtl::OString const & aType, rtl::OString const & aMsg, rtl::OString const & aPrefix,
rtl::OString const & aContext, sal_Bool bPrintContext, std::size_t nLine, rtl::OString aUniqueId )
diff --git a/l10ntools/source/gsimain.cxx b/l10ntools/source/gsimain.cxx
index 4ed9d69..7558731 100644
--- a/l10ntools/source/gsimain.cxx
+++ b/l10ntools/source/gsimain.cxx
@@ -42,6 +42,25 @@
#include "tagtest.hxx"
#include "gsicheck.hxx"
+namespace {
+
+rtl::OString addSuffix(
+ rtl::OString const & pathname, rtl::OString const & suffix)
+{
+ sal_Int32 n = pathname.lastIndexOf('.');
+ if (n == -1) {
+ fprintf(
+ stderr,
+ ("Error: pathname \"%s\" does not contain dot to add suffix in"
+ " front of\n"),
+ pathname.getStr());
+ exit(EXIT_FAILURE);
+ }
+ return pathname.replaceAt(n, 0, suffix);
+}
+
+}
+
void Help()
{
fprintf( stdout, "\n" );
More information about the Libreoffice-commits
mailing list