diff --git a/client/gui-qt/canvas.cpp b/client/gui-qt/canvas.cpp index 42785c1f01..f69c9929fe 100644 --- a/client/gui-qt/canvas.cpp +++ b/client/gui-qt/canvas.cpp @@ -36,25 +36,6 @@ #include "qtg_cxxside.h" #include "sprite.h" -/** - Copies an area from the source canvas to the destination canvas. - */ -void canvas_copy(QPixmap *dest, const QPixmap *src, int src_x, int src_y, - int dest_x, int dest_y, int width, int height) -{ - QRectF source_rect(src_x, src_y, width, height); - QRectF dest_rect(dest_x, dest_y, width, height); - QPainter p; - - if (!width || !height) { - return; - } - - p.begin(dest); - p.drawPixmap(dest_rect, *src, source_rect); - p.end(); -} - /** Copies an area from the source pixmap to the destination pixmap. */ diff --git a/client/include/canvas_g.h b/client/include/canvas_g.h index 3dda9e1c53..5771007607 100644 --- a/client/include/canvas_g.h +++ b/client/include/canvas_g.h @@ -22,9 +22,6 @@ class QString; enum line_type { LINE_NORMAL, LINE_BORDER, LINE_TILE_FRAME, LINE_GOTO }; // Drawing functions -[[deprecated("Use QPainter")]] void -canvas_copy(QPixmap *dest, const QPixmap *src, int src_x, int src_y, - int dest_x, int dest_y, int width, int height); GUI_FUNC_PROTO(void, canvas_put_sprite, QPixmap *pcanvas, int canvas_x, int canvas_y, const QPixmap *sprite, int offset_x, int offset_y, int width, int height);