Skip to content

Commit

Permalink
Remove unnecessary code
Browse files Browse the repository at this point in the history
QObjects cannot be copied anyway
  • Loading branch information
nyalldawson committed Jun 17, 2018
1 parent b643465 commit 184b0ef
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 13 deletions.
3 changes: 0 additions & 3 deletions python/gui/auto_generated/qgsmapcanvas.sip.in
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,6 @@ Map canvas is a class for displaying all GIS data types on a canvas.
Constructor
%End


~QgsMapCanvas();

double magnificationFactor() const;
Expand Down Expand Up @@ -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


Expand Down
10 changes: 0 additions & 10 deletions src/gui/qgsmapcanvas.h
Original file line number Diff line number Diff line change
Expand Up @@ -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;

/**
Expand Down Expand Up @@ -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;
Expand Down

0 comments on commit 184b0ef

Please sign in to comment.