Commit 8357a2ee authored by Laurent Montel's avatar Laurent Montel 😁

Remove unused method

parent 249ceed9
...@@ -40,26 +40,6 @@ bool MessageCore::Util::isStandaloneMessage( const Akonadi::Item &item ) ...@@ -40,26 +40,6 @@ bool MessageCore::Util::isStandaloneMessage( const Akonadi::Item &item )
return item.hasPayload<KMime::Message::Ptr>() && !item.isValid(); return item.hasPayload<KMime::Message::Ptr>() && !item.isValid();
} }
QString MessageCore::Util::messageId( const KMime::Message::Ptr &message )
{
if ( !message->headerByType( "Message-Id" ) )
return QString();
QString messageId = message->headerByType( "Message-Id" )->asUnicodeString();
// search the end of the message id
const int rightAngle = messageId.indexOf( QLatin1Char( '>' ) );
if ( rightAngle != -1 )
messageId.truncate( rightAngle + 1 );
// now search the start of the message id
const int leftAngle = messageId.lastIndexOf( QLatin1Char( '<' ) );
if ( leftAngle != -1 )
messageId = messageId.mid( leftAngle );
return messageId;
}
void MessageCore::Util::addLinkInformation( const KMime::Message::Ptr &msg, Akonadi::Item::Id id, const Akonadi::MessageStatus &status ) void MessageCore::Util::addLinkInformation( const KMime::Message::Ptr &msg, Akonadi::Item::Id id, const Akonadi::MessageStatus &status )
{ {
Q_ASSERT( status.isReplied() || status.isForwarded() || status.isDeleted() ); Q_ASSERT( status.isReplied() || status.isForwarded() || status.isDeleted() );
......
...@@ -46,11 +46,6 @@ MESSAGECORE_EXPORT KMime::Message::Ptr message( const Akonadi::Item &item ); ...@@ -46,11 +46,6 @@ MESSAGECORE_EXPORT KMime::Message::Ptr message( const Akonadi::Item &item );
*/ */
MESSAGECORE_EXPORT bool isStandaloneMessage( const Akonadi::Item &item ); MESSAGECORE_EXPORT bool isStandaloneMessage( const Akonadi::Item &item );
/**
* Get the message id as a string from the @p message.
*/
MESSAGECORE_EXPORT QString messageId( const KMime::Message::Ptr &message );
/** /**
* Adds private headers to the given @p message that links it to the original message. * Adds private headers to the given @p message that links it to the original message.
* *
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment