Skip to content
Permalink
Browse files

Remove unnecessary code

QObjects cannot be copied anyway
  • Loading branch information
nyalldawson committed Jun 17, 2018
1 parent b643465 commit 184b0ef2a96239784d026d79b6a3d210c17d57a5
Showing with 0 additions and 13 deletions.
  1. +0 −3 python/gui/auto_generated/qgsmapcanvas.sip.in
  2. +0 −10 src/gui/qgsmapcanvas.h
@@ -40,7 +40,6 @@ Map canvas is a class for displaying all GIS data types on a canvas.
Constructor
%End


~QgsMapCanvas();

double magnificationFactor() const;
@@ -1020,8 +1019,6 @@ called when panning is in action, reset indicates end of panning
called on resize or changed extent to notify canvas items to change their rectangle
%End

private:
QgsMapCanvas( const QgsMapCanvas &const );
}; // class QgsMapCanvas


@@ -92,11 +92,6 @@ class GUI_EXPORT QgsMapCanvas : public QGraphicsView
//! Constructor
QgsMapCanvas( QWidget *parent SIP_TRANSFERTHIS = nullptr );

//! QgsMapCanvas cannot be copied
QgsMapCanvas( const QgsMapCanvas &other ) = delete;
//! QgsMapCanvas cannot be copied
QgsMapCanvas &operator=( const QgsMapCanvas &other ) = delete;

~QgsMapCanvas() override;

/**
@@ -905,11 +900,6 @@ class GUI_EXPORT QgsMapCanvas : public QGraphicsView
void startPreviewJob( int number );

private:
/// this class is non-copyable

#ifdef SIP_RUN
QgsMapCanvas( const QgsMapCanvas &const );
#endif

//! encompases all map settings necessary for map rendering
QgsMapSettings mSettings;

0 comments on commit 184b0ef

Please sign in to comment.
You can’t perform that action at this time.