Skip to content

Commit 184b0ef

Browse files
committed
Remove unnecessary code
QObjects cannot be copied anyway
1 parent b643465 commit 184b0ef

File tree

2 files changed

+0
-13
lines changed

2 files changed

+0
-13
lines changed

python/gui/auto_generated/qgsmapcanvas.sip.in

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,6 @@ Map canvas is a class for displaying all GIS data types on a canvas.
4040
Constructor
4141
%End
4242

43-
4443
~QgsMapCanvas();
4544

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

1023-
private:
1024-
QgsMapCanvas( const QgsMapCanvas &const );
10251022
}; // class QgsMapCanvas
10261023

10271024

src/gui/qgsmapcanvas.h

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -92,11 +92,6 @@ class GUI_EXPORT QgsMapCanvas : public QGraphicsView
9292
//! Constructor
9393
QgsMapCanvas( QWidget *parent SIP_TRANSFERTHIS = nullptr );
9494

95-
//! QgsMapCanvas cannot be copied
96-
QgsMapCanvas( const QgsMapCanvas &other ) = delete;
97-
//! QgsMapCanvas cannot be copied
98-
QgsMapCanvas &operator=( const QgsMapCanvas &other ) = delete;
99-
10095
~QgsMapCanvas() override;
10196

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

907902
private:
908-
/// this class is non-copyable
909-
910-
#ifdef SIP_RUN
911-
QgsMapCanvas( const QgsMapCanvas &const );
912-
#endif
913903

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

0 commit comments

Comments
 (0)