[SCM] ktp-common-internals packaging branch, master, updated. debian/15.12.1-2-1839-gf0635e9

Maximiliano Curia maxy at moszumanska.debian.org
Mon May 9 09:06:39 UTC 2016


Gitweb-URL: http://git.debian.org/?p=pkg-kde/applications/ktp-common-internals.git;a=commitdiff;h=2357589

The following commit has been merged in the master branch:
commit 23575898f106c0f310c85c192e439d9503300e58
Author: David Edmundson <kde at davidedmundson.co.uk>
Date:   Sun Mar 24 12:10:23 2013 +0000

    Remove backslash filter
---
 KTp/CMakeLists.txt               |  1 -
 KTp/message-backslash-filter.cpp | 31 -------------------------------
 KTp/message-filters-private.h    |  7 -------
 KTp/message-processor.cpp        |  2 --
 4 files changed, 41 deletions(-)

diff --git a/KTp/CMakeLists.txt b/KTp/CMakeLists.txt
index def690d..1e32b9b 100644
--- a/KTp/CMakeLists.txt
+++ b/KTp/CMakeLists.txt
@@ -17,7 +17,6 @@ set (ktp_common_internals_private_SRCS
      logs-importer-private.cpp
      message.cpp
      message-context.cpp
-     message-backslash-filter.cpp
      message-escape-filter.cpp
      message-filter-config-manager.cpp
      message-processor.cpp
diff --git a/KTp/message-backslash-filter.cpp b/KTp/message-backslash-filter.cpp
deleted file mode 100644
index 6a972a9..0000000
--- a/KTp/message-backslash-filter.cpp
+++ /dev/null
@@ -1,31 +0,0 @@
-/*
-    Copyright (C) 2012  Lasath Fernando <kde at lasath.org>
-    Copyright (C) 2013  Daniele E. Domenichelli <daniele.domenichelli at gmail.com>
-
-    This library is free software; you can redistribute it and/or
-    modify it under the terms of the GNU Lesser General Public
-    License as published by the Free Software Foundation; either
-    version 2.1 of the License, or (at your option) any later version.
-
-    This library is distributed in the hope that it will be useful,
-    but WITHOUT ANY WARRANTY; without even the implied warranty of
-    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
-    Lesser General Public License for more details.
-
-    You should have received a copy of the GNU Lesser General Public
-    License along with this library; if not, write to the Free Software
-    Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301  USA
-*/
-
-#include "message-filters-private.h"
-
-MessageBackslashFilter::MessageBackslashFilter(QObject *parent)
-    : AbstractMessageFilter(parent)
-{
-}
-
-void MessageBackslashFilter::filterMessage(KTp::Message &message, const KTp::MessageContext &context)
-{
-    Q_UNUSED(context)
-    message.setMainMessagePart(message.mainMessagePart().replace(QLatin1Char('\'), QLatin1String("\\"))); //replace a single backslash with two backslashes.
-}
diff --git a/KTp/message-filters-private.h b/KTp/message-filters-private.h
index b9d4971..64d1cad 100644
--- a/KTp/message-filters-private.h
+++ b/KTp/message-filters-private.h
@@ -37,11 +37,4 @@ class MessageEscapeFilter : public KTp::AbstractMessageFilter
     virtual void filterMessage(KTp::Message& message, const KTp::MessageContext &context);
 };
 
-class MessageBackslashFilter : public KTp::AbstractMessageFilter
-{
-public:
-    explicit MessageBackslashFilter(QObject *parent = 0);
-    virtual void filterMessage(KTp::Message& message, const KTp::MessageContext &context);
-};
-
 #endif
diff --git a/KTp/message-processor.cpp b/KTp/message-processor.cpp
index d4d1e8c..db41ecf 100644
--- a/KTp/message-processor.cpp
+++ b/KTp/message-processor.cpp
@@ -112,8 +112,6 @@ MessageProcessor::MessageProcessor():
     d->filters.append(new MessageUrlFilter(this));
 
     d->loadFilters();
-
-    d->filters.append(new MessageBackslashFilter(this));
 }
 
 

-- 
ktp-common-internals packaging



More information about the pkg-kde-commits mailing list