diff --git a/libshvvisu/include/shv/visu/timeline/graph.h b/libshvvisu/include/shv/visu/timeline/graph.h index 0bdbfb82b..05176ba2c 100644 --- a/libshvvisu/include/shv/visu/timeline/graph.h +++ b/libshvvisu/include/shv/visu/timeline/graph.h @@ -23,8 +23,6 @@ #include #endif -class QSvgGenerator; - namespace shv::visu::timeline { class SHVVISU_DECL_EXPORT Graph : public QObject @@ -238,8 +236,6 @@ class SHVVISU_DECL_EXPORT Graph : public QObject void loadVisualSettings(const QString &settings_id, const QString &name); QString loadedVisualSettingsId(); - void draw(QSvgGenerator *svg_generator, const QRect &rect); - protected: void sanityXRangeZoom(); diff --git a/libshvvisu/src/timeline/graph.cpp b/libshvvisu/src/timeline/graph.cpp index 933facb73..2d07a1a87 100644 --- a/libshvvisu/src/timeline/graph.cpp +++ b/libshvvisu/src/timeline/graph.cpp @@ -5,7 +5,6 @@ #include #include #include -#include #include #include @@ -1297,15 +1296,6 @@ int Graph::maximizedChannelIndex() const return -1; } -void Graph::draw(QSvgGenerator *svg_generator, const QRect &rect) -{ - auto orig_layout = m_layout.rect; - makeLayout(rect); - QPainter painter(svg_generator); - draw(&painter, rect, rect); - makeLayout(orig_layout); -} - void Graph::draw(QPainter *painter, const QRect &dirty_rect, const QRect &view_rect) { drawBackground(painter, dirty_rect);