From 8fe7110dc9b39d214c4e516d7020fb8a37cf4ea1 Mon Sep 17 00:00:00 2001 From: Relintai Date: Tue, 21 Jun 2022 18:54:33 +0200 Subject: [PATCH] Remove a now uneeded method. --- modules/paint/actions/paint_action.cpp | 19 ------------------- modules/paint/actions/paint_action.h | 2 -- 2 files changed, 21 deletions(-) diff --git a/modules/paint/actions/paint_action.cpp b/modules/paint/actions/paint_action.cpp index 58a5d4af4..9c9fecc91 100644 --- a/modules/paint/actions/paint_action.cpp +++ b/modules/paint/actions/paint_action.cpp @@ -259,25 +259,6 @@ void PaintAction::draw_points(PaintCanvas *canvas, const PoolVector2iArray &poin } } -void PaintAction::copy_data_from(const Ref &other) { - action_data_undo = other->action_data_undo.duplicate(true); - action_data_redo = other->action_data_redo.duplicate(true); - action_data_preview = other->action_data_preview.duplicate(true); - - undo_cells.append_array(other->undo_cells); - undo_colors.append_array(other->undo_colors); - - redo_cells.append_array(other->redo_cells); - redo_colors.append_array(other->redo_colors); - - preview_cells.append_array(other->preview_cells); - preview_colors.append_array(other->preview_colors); - - layer = other->layer; - - action_data = other->action_data.duplicate(true); -} - PaintAction::PaintAction() { } diff --git a/modules/paint/actions/paint_action.h b/modules/paint/actions/paint_action.h index cd14bf897..811e218d8 100644 --- a/modules/paint/actions/paint_action.h +++ b/modules/paint/actions/paint_action.h @@ -87,8 +87,6 @@ public: void draw_points(PaintCanvas *canvas, const PoolVector2iArray &point_arr, const PoolColorArray &color_arr); - void copy_data_from(const Ref &other); - PaintAction(); ~PaintAction();