From b44f41b0a82c4bb9bccbec43c85844fbc635fc7c Mon Sep 17 00:00:00 2001 From: Steffen Windoffer Date: Wed, 30 Nov 2016 19:25:45 +0100 Subject: [PATCH] remove unused hardwareRevisonNames --- src/main/target/ALIENFLIGHTF1/hardware_revision.c | 5 ----- src/main/target/ALIENFLIGHTF3/hardware_revision.c | 6 ------ src/main/target/ALIENFLIGHTF4/hardware_revision.c | 6 ------ src/main/target/BLUEJAYF4/hardware_revision.c | 10 ---------- src/main/target/CJMCU/hardware_revision.c | 6 ------ src/main/target/NAZE/hardware_revision.c | 7 ------- 6 files changed, 40 deletions(-) diff --git a/src/main/target/ALIENFLIGHTF1/hardware_revision.c b/src/main/target/ALIENFLIGHTF1/hardware_revision.c index a492c075f..4ea15ecde 100644 --- a/src/main/target/ALIENFLIGHTF1/hardware_revision.c +++ b/src/main/target/ALIENFLIGHTF1/hardware_revision.c @@ -28,11 +28,6 @@ #include "drivers/exti.h" #include "hardware_revision.h" -static const char * const hardwareRevisionNames[] = { - "Unknown", - "AlienFlight F1 V1", -}; - uint8_t hardwareRevision = AFF1_REV_1; uint8_t hardwareMotorType = MOTOR_UNKNOWN; diff --git a/src/main/target/ALIENFLIGHTF3/hardware_revision.c b/src/main/target/ALIENFLIGHTF3/hardware_revision.c index f50d744fd..0dd8ba2e4 100644 --- a/src/main/target/ALIENFLIGHTF3/hardware_revision.c +++ b/src/main/target/ALIENFLIGHTF3/hardware_revision.c @@ -28,12 +28,6 @@ #include "drivers/exti.h" #include "hardware_revision.h" -static const char * const hardwareRevisionNames[] = { - "Unknown", - "AlienFlight F3 V1", - "AlienFlight F3 V2" -}; - uint8_t hardwareRevision = AFF3_UNKNOWN; uint8_t hardwareMotorType = MOTOR_UNKNOWN; diff --git a/src/main/target/ALIENFLIGHTF4/hardware_revision.c b/src/main/target/ALIENFLIGHTF4/hardware_revision.c index 4e55f9c7f..918e897c8 100644 --- a/src/main/target/ALIENFLIGHTF4/hardware_revision.c +++ b/src/main/target/ALIENFLIGHTF4/hardware_revision.c @@ -27,12 +27,6 @@ #include "drivers/io.h" #include "hardware_revision.h" -static const char * const hardwareRevisionNames[] = { - "Unknown", - "AlienFlight F4 V1", - "AlienFlight F4 V2" -}; - uint8_t hardwareRevision = AFF4_UNKNOWN; uint8_t hardwareMotorType = MOTOR_UNKNOWN; diff --git a/src/main/target/BLUEJAYF4/hardware_revision.c b/src/main/target/BLUEJAYF4/hardware_revision.c index 1afc768fe..7261aa223 100644 --- a/src/main/target/BLUEJAYF4/hardware_revision.c +++ b/src/main/target/BLUEJAYF4/hardware_revision.c @@ -29,14 +29,6 @@ #include "drivers/flash_m25p16.h" #include "hardware_revision.h" -static const char * const hardwareRevisionNames[] = { - "Unknown", - "BlueJay rev1", - "BlueJay rev2", - "BlueJay rev3", - "BlueJay rev3a" -}; - uint8_t hardwareRevision = UNKNOWN; void detectHardwareRevision(void) @@ -99,5 +91,3 @@ void updateHardwareRevision(void) IOInit(IOGetByTag(IO_TAG(PB3)), OWNER_FREE, 0); } } - - diff --git a/src/main/target/CJMCU/hardware_revision.c b/src/main/target/CJMCU/hardware_revision.c index eacb851ec..20f63e256 100755 --- a/src/main/target/CJMCU/hardware_revision.c +++ b/src/main/target/CJMCU/hardware_revision.c @@ -32,12 +32,6 @@ #include "hardware_revision.h" -static const char * const hardwareRevisionNames[] = { - "Unknown", - "R1", - "R2" -}; - uint8_t hardwareRevision = UNKNOWN; void detectHardwareRevision(void) diff --git a/src/main/target/NAZE/hardware_revision.c b/src/main/target/NAZE/hardware_revision.c index 68df4d37c..533d8bb58 100755 --- a/src/main/target/NAZE/hardware_revision.c +++ b/src/main/target/NAZE/hardware_revision.c @@ -34,13 +34,6 @@ #include "hardware_revision.h" -static const char * const hardwareRevisionNames[] = { - "Unknown", - "Naze 32", - "Naze32 rev.5", - "Naze32 SP" -}; - uint8_t hardwareRevision = UNKNOWN; void detectHardwareRevision(void)