Skip to content

Commit

Permalink
Merge pull request #33150 from rouault/cleanup_pal_constructor_destru…
Browse files Browse the repository at this point in the history
…ctor

[cleanup] pal.cpp: remove useless constructor and destructor
  • Loading branch information
rouault committed Nov 30, 2019
2 parents 23fb486 + c2dac18 commit 80cf602
Showing 1 changed file with 3 additions and 15 deletions.
18 changes: 3 additions & 15 deletions src/core/pal/pal.cpp
Expand Up @@ -46,11 +46,9 @@

using namespace pal;

Pal::Pal()
{
// do not init and exit GEOS - we do it inside QGIS
//initGEOS( geosNotice, geosError );
}
Pal::Pal() = default;

Pal::~Pal() = default;

void Pal::removeLayer( Layer *layer )
{
Expand All @@ -70,16 +68,6 @@ void Pal::removeLayer( Layer *layer )
mMutex.unlock();
}

Pal::~Pal()
{
mMutex.lock();
mLayers.clear();
mMutex.unlock();

// do not init and exit GEOS - we do it inside QGIS
//finishGEOS();
}

Layer *Pal::addLayer( QgsAbstractLabelProvider *provider, const QString &layerName, QgsPalLayerSettings::Placement arrangement, double defaultPriority, bool active, bool toLabel, bool displayAll )
{
mMutex.lock();
Expand Down

0 comments on commit 80cf602

Please sign in to comment.