Commit 210c3d79 authored by Halla Rempt's avatar Halla Rempt
Browse files

warning--: comment out defined but not used function

parent fc87c7fd
......@@ -498,20 +498,20 @@ void KoChangeTracker::setFormatChangeBgColor(const QColor& bgColor)
d->formatChangeBgColor = bgColor;
}
//A convenience function to get a ListIdType from a format
static KoListStyle::ListIdType ListId(const QTextListFormat &format)
{
KoListStyle::ListIdType listId;
if (sizeof(KoListStyle::ListIdType) == sizeof(uint)) {
listId = format.property(KoListStyle::ListId).toUInt();
}
else {
listId = format.property(KoListStyle::ListId).toULongLong();
}
return listId;
}
////A convenience function to get a ListIdType from a format
//static KoListStyle::ListIdType ListId(const QTextListFormat &format)
//{
// KoListStyle::ListIdType listId;
// if (sizeof(KoListStyle::ListIdType) == sizeof(uint)) {
// listId = format.property(KoListStyle::ListId).toUInt();
// }
// else {
// listId = format.property(KoListStyle::ListId).toULongLong();
// }
// return listId;
//}
QTextDocumentFragment KoChangeTracker::generateDeleteFragment(const QTextCursor &cursor)
{
......
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