Skip to content

Commit 5160ad9

Browse files
committedJan 5, 2018
Remove some outdated todos
1 parent 3994c4a commit 5160ad9

File tree

1 file changed

+0
-13
lines changed

1 file changed

+0
-13
lines changed
 

‎src/core/layout/qgslayoutitemmap.cpp

Lines changed: 0 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -504,10 +504,6 @@ void QgsLayoutItemMap::draw( QgsRenderContext &, const QStyleOptionGraphicsItem
504504

505505
bool QgsLayoutItemMap::writePropertiesToElement( QDomElement &composerMapElem, QDomDocument &doc, const QgsReadWriteContext &context ) const
506506
{
507-
#if 0 //TODO - is this needed?
508-
composerMapElem.setAttribute( QStringLiteral( "id" ), mId );
509-
#endif
510-
511507
if ( mKeepLayerSet )
512508
{
513509
composerMapElem.setAttribute( QStringLiteral( "keepLayerSet" ), QStringLiteral( "true" ) );
@@ -608,14 +604,6 @@ bool QgsLayoutItemMap::writePropertiesToElement( QDomElement &composerMapElem, Q
608604
bool QgsLayoutItemMap::readPropertiesFromElement( const QDomElement &itemElem, const QDomDocument &doc, const QgsReadWriteContext &context )
609605
{
610606
mUpdatesEnabled = false;
611-
#if 0 //TODO
612-
QString idRead = itemElem.attribute( QStringLiteral( "id" ), QStringLiteral( "not found" ) );
613-
if ( idRead != QLatin1String( "not found" ) )
614-
{
615-
mId = idRead.toInt();
616-
updateToolTip();
617-
}
618-
#endif
619607

620608
//extent
621609
QDomNodeList extentNodeList = itemElem.elementsByTagName( QStringLiteral( "Extent" ) );
@@ -1597,7 +1585,6 @@ QPointF QgsLayoutItemMap::layoutMapPosForItem( const QgsAnnotation *annotation )
15971585
if ( annotationCrs != crs() )
15981586
{
15991587
//need to reproject
1600-
// todo datum nyall set context
16011588
QgsCoordinateTransform t( annotationCrs, crs(), mLayout->project() );
16021589
double z = 0.0;
16031590
try

0 commit comments

Comments
 (0)
Please sign in to comment.