← Back to team overview

kicad-developers team mailing list archive

[PATCH] Remove unused code from legacy_gal

 

Hi,

Here is a really silly (since it's in legacy code) small patch for
some unused code I was alerted to by Clang. But might as well get it
off my patch stack!

Cheers,

John
From 3f7aaef50dc0cc51d995450c6c6a7c5fca85f8d1 Mon Sep 17 00:00:00 2001
From: John Beard <john.j.beard@xxxxxxxxx>
Date: Fri, 4 Jan 2019 14:20:47 +0000
Subject: [PATCH] Remove unused VIRT_MIN/MAX from legacy_gal

---
 common/legacy_gal/eda_draw_frame.cpp | 7 -------
 1 file changed, 7 deletions(-)

diff --git a/common/legacy_gal/eda_draw_frame.cpp b/common/legacy_gal/eda_draw_frame.cpp
index b9a8eba41..1e22efda0 100644
--- a/common/legacy_gal/eda_draw_frame.cpp
+++ b/common/legacy_gal/eda_draw_frame.cpp
@@ -1018,13 +1018,6 @@ bool EDA_DRAW_FRAME::HandleBlockBegin( wxDC* aDC, EDA_KEY aKey, const wxPoint& a
 }
 
 
-// I am not seeing a problem with this size yet:
-static const double MAX_AXIS = INT_MAX - 100;
-
-#define VIRT_MIN    (-MAX_AXIS/2.0)     ///< min X or Y coordinate in virtual space
-#define VIRT_MAX    (MAX_AXIS/2.0)      ///< max X or Y coordinate in virtual space
-
-
 void EDA_DRAW_FRAME::AdjustScrollBars( const wxPoint& aCenterPositionIU )
 {
 }
-- 
2.20.1


Follow ups