From 195483b35d9966b3b43a9a63fbb91370e5191894 Mon Sep 17 00:00:00 2001 From: Luc Maisonobe <luc@orekit.org> Date: Fri, 15 Dec 2017 13:53:38 +0100 Subject: [PATCH] Removed unused error messages. --- src/main/java/org/orekit/rugged/errors/RuggedMessages.java | 2 -- .../assets/org/orekit/rugged/RuggedMessages_da.utf8 | 6 ------ .../assets/org/orekit/rugged/RuggedMessages_de.utf8 | 6 ------ .../assets/org/orekit/rugged/RuggedMessages_en.utf8 | 6 ------ .../assets/org/orekit/rugged/RuggedMessages_es.utf8 | 6 ------ .../assets/org/orekit/rugged/RuggedMessages_fr.utf8 | 6 ------ .../assets/org/orekit/rugged/RuggedMessages_gl.utf8 | 6 ------ .../assets/org/orekit/rugged/RuggedMessages_it.utf8 | 6 ------ .../assets/org/orekit/rugged/RuggedMessages_no.utf8 | 6 ------ .../assets/org/orekit/rugged/RuggedMessages_ro.utf8 | 6 ------ .../java/org/orekit/rugged/errors/RuggedMessagesTest.java | 2 +- 11 files changed, 1 insertion(+), 57 deletions(-) diff --git a/src/main/java/org/orekit/rugged/errors/RuggedMessages.java b/src/main/java/org/orekit/rugged/errors/RuggedMessages.java index 4a6854d7..31b763e9 100644 --- a/src/main/java/org/orekit/rugged/errors/RuggedMessages.java +++ b/src/main/java/org/orekit/rugged/errors/RuggedMessages.java @@ -60,7 +60,6 @@ public enum RuggedMessages implements Localizable { UNINITIALIZED_CONTEXT("general context has not been initialized (missing call to {0})"), EMPTY_TILE("tile is empty: {0} ⨉ {1}"), UNKNOWN_SENSOR("unknown sensor {0}"), - UNKNOWN_PIXEL("unknown pixel in mapping {0}"), LINE_OF_SIGHT_DOES_NOT_REACH_GROUND("line-of-sight does not reach ground"), LINE_OF_SIGHT_NEVER_CROSSES_LATITUDE("line-of-sight never crosses latitude {0}"), LINE_OF_SIGHT_NEVER_CROSSES_LONGITUDE("line-of-sight never crosses longitude {0}"), @@ -68,7 +67,6 @@ public enum RuggedMessages implements Localizable { DEM_ENTRY_POINT_IS_BEHIND_SPACECRAFT("line-of-sight enters the Digital Elevation Model behind spacecraft!"), FRAMES_MISMATCH_WITH_INTERPOLATOR_DUMP("frame {0} does not match frame {1} from interpolator dump"), NOT_INTERPOLATOR_DUMP_DATA("data is not an interpolator dump"), - ESTIMATED_PARAMETERS_NUMBER_MISMATCH("number of estimated parameters mismatch, expected {0} got {1}"), DEBUG_DUMP_ALREADY_ACTIVE("debug dump is already active for this thread"), DEBUG_DUMP_ACTIVATION_ERROR("unable to active debug dump with file {0}: {1}"), DEBUG_DUMP_NOT_ACTIVE("debug dump is not active for this thread"), diff --git a/src/main/resources/assets/org/orekit/rugged/RuggedMessages_da.utf8 b/src/main/resources/assets/org/orekit/rugged/RuggedMessages_da.utf8 index b59388f1..9832d436 100644 --- a/src/main/resources/assets/org/orekit/rugged/RuggedMessages_da.utf8 +++ b/src/main/resources/assets/org/orekit/rugged/RuggedMessages_da.utf8 @@ -25,9 +25,6 @@ EMPTY_TILE = flisen er tom: {0} ⨉ {1} # unknown sensor {0} UNKNOWN_SENSOR = ukendt mÃ¥ler {0} -#unknown pixel in mapping {0} -UNKNOWN_PIXEL = <MISSING TRANSLATION> - # line-of-sight does not reach ground LINE_OF_SIGHT_DOES_NOT_REACH_GROUND = synslinjen nÃ¥r ikke bakken @@ -49,9 +46,6 @@ FRAMES_MISMATCH_WITH_INTERPOLATOR_DUMP = rammen {0} stemmer ikke overens med ram # data is not an interpolator dump NOT_INTERPOLATOR_DUMP_DATA = dataen er ikke et interpolar-dump -# number of estimated parameters mismatch, expected {0} got {1} -ESTIMATED_PARAMETERS_NUMBER_MISMATCH = antal forventede parametre stemmer ikke overens, forventede {0} og modtog {1} - # debug dump is already active for this thread DEBUG_DUMP_ALREADY_ACTIVE = debug-dump er allerede aktivt for denne trÃ¥d diff --git a/src/main/resources/assets/org/orekit/rugged/RuggedMessages_de.utf8 b/src/main/resources/assets/org/orekit/rugged/RuggedMessages_de.utf8 index 30a84d24..2029faea 100644 --- a/src/main/resources/assets/org/orekit/rugged/RuggedMessages_de.utf8 +++ b/src/main/resources/assets/org/orekit/rugged/RuggedMessages_de.utf8 @@ -25,9 +25,6 @@ EMPTY_TILE = die Ziegel ist leer: {0} * {1} # unknown sensor {0} UNKNOWN_SENSOR = unbekannter Sensor {0} -#unknown pixel in mapping {0} -UNKNOWN_PIXEL = <MISSING TRANSLATION> - # line-of-sight does not reach ground LINE_OF_SIGHT_DOES_NOT_REACH_GROUND = die Sichtverbindung erreicht nicht die Erde @@ -49,9 +46,6 @@ FRAMES_MISMATCH_WITH_INTERPOLATOR_DUMP = der Rahmen {0} passt nicht zum Rahmen { # data is not an interpolator dump NOT_INTERPOLATOR_DUMP_DATA = die Angabe ist nicht das Backup der Interpolation -# number of estimated parameters mismatch, expected {0} got {1} -ESTIMATED_PARAMETERS_NUMBER_MISMATCH = <MISSING TRANSLATION> - # debug dump is already active for this thread DEBUG_DUMP_ALREADY_ACTIVE = <MISSING TRANSLATION> diff --git a/src/main/resources/assets/org/orekit/rugged/RuggedMessages_en.utf8 b/src/main/resources/assets/org/orekit/rugged/RuggedMessages_en.utf8 index 86cda902..db72ef9c 100644 --- a/src/main/resources/assets/org/orekit/rugged/RuggedMessages_en.utf8 +++ b/src/main/resources/assets/org/orekit/rugged/RuggedMessages_en.utf8 @@ -25,9 +25,6 @@ EMPTY_TILE = tile is empty: {0} ⨉ {1} # unknown sensor {0} UNKNOWN_SENSOR = unknown sensor {0} -# unknown pixel in mapping {0} -UNKNOWN_PIXEL = unknown pixel in mapping {0} - # line-of-sight does not reach ground LINE_OF_SIGHT_DOES_NOT_REACH_GROUND = line-of-sight does not reach ground @@ -49,9 +46,6 @@ FRAMES_MISMATCH_WITH_INTERPOLATOR_DUMP = frame {0} does not match frame {1} from # data is not an interpolator dump NOT_INTERPOLATOR_DUMP_DATA = data is not an interpolator dump -# number of estimated parameters mismatch, expected {0} got {1} -ESTIMATED_PARAMETERS_NUMBER_MISMATCH = number of estimated parameters mismatch, expected {0} got {1} - # debug dump is already active for this thread DEBUG_DUMP_ALREADY_ACTIVE = debug dump is already active for this thread diff --git a/src/main/resources/assets/org/orekit/rugged/RuggedMessages_es.utf8 b/src/main/resources/assets/org/orekit/rugged/RuggedMessages_es.utf8 index 8b70a6fd..0664ff8c 100644 --- a/src/main/resources/assets/org/orekit/rugged/RuggedMessages_es.utf8 +++ b/src/main/resources/assets/org/orekit/rugged/RuggedMessages_es.utf8 @@ -25,9 +25,6 @@ EMPTY_TILE = la faceta está vacÃa: {0} ⨉ {1} # unknown sensor {0} UNKNOWN_SENSOR = sensor {0} desconocido -#unknown pixel in mapping {0} -UNKNOWN_PIXEL = <MISSING TRANSLATION> - # line-of-sight does not reach ground LINE_OF_SIGHT_DOES_NOT_REACH_GROUND = la lÃnea de visión no llega al suelo @@ -49,9 +46,6 @@ FRAMES_MISMATCH_WITH_INTERPOLATOR_DUMP = el sistema de referencia {0} no corresp # data is not an interpolator dump NOT_INTERPOLATOR_DUMP_DATA = los datos no están en el volcado de datos del interpolador -# number of estimated parameters mismatch, expected {0} got {1} -ESTIMATED_PARAMETERS_NUMBER_MISMATCH = <MISSING TRANSLATION> - # debug dump is already active for this thread DEBUG_DUMP_ALREADY_ACTIVE = <MISSING TRANSLATION> diff --git a/src/main/resources/assets/org/orekit/rugged/RuggedMessages_fr.utf8 b/src/main/resources/assets/org/orekit/rugged/RuggedMessages_fr.utf8 index 8cd8d4ae..eb49a42b 100644 --- a/src/main/resources/assets/org/orekit/rugged/RuggedMessages_fr.utf8 +++ b/src/main/resources/assets/org/orekit/rugged/RuggedMessages_fr.utf8 @@ -25,9 +25,6 @@ EMPTY_TILE = la tuile est vide : {0} ⨉ {1} # unknown sensor {0} UNKNOWN_SENSOR = capteur {0} inconnu -# unknown pixel in mapping {0} -UNKNOWN_PIXEL = pixel inconnu dans le mapping {0} - # line-of-sight does not reach ground LINE_OF_SIGHT_DOES_NOT_REACH_GROUND = la ligne de visée n''atteint pas le sol @@ -49,9 +46,6 @@ FRAMES_MISMATCH_WITH_INTERPOLATOR_DUMP = le repère {0} ne correspond pas au rep # data is not an interpolator dump NOT_INTERPOLATOR_DUMP_DATA = les données ne correspondent pas à une sauvegarde d''interpolateur -# number of estimated parameters mismatch, expected {0} got {1} -ESTIMATED_PARAMETERS_NUMBER_MISMATCH = incohérence du nombre de paramètres estimés, {0} attendus, {1} renseignés - # debug dump is already active for this thread DEBUG_DUMP_ALREADY_ACTIVE = capture de débogage déjà active pour ce fil d''exécution diff --git a/src/main/resources/assets/org/orekit/rugged/RuggedMessages_gl.utf8 b/src/main/resources/assets/org/orekit/rugged/RuggedMessages_gl.utf8 index 49462440..8b525949 100644 --- a/src/main/resources/assets/org/orekit/rugged/RuggedMessages_gl.utf8 +++ b/src/main/resources/assets/org/orekit/rugged/RuggedMessages_gl.utf8 @@ -25,9 +25,6 @@ EMPTY_TILE = a faceta está baleira: {0} ⨉ {1} # unknown sensor {0} UNKNOWN_SENSOR = sensor {0} descoñecido -#unknown pixel in mapping {0} -UNKNOWN_PIXEL = <MISSING TRANSLATION> - # line-of-sight does not reach ground LINE_OF_SIGHT_DOES_NOT_REACH_GROUND = a liña de visión non chega ao chan @@ -49,9 +46,6 @@ FRAMES_MISMATCH_WITH_INTERPOLATOR_DUMP = o sistema de referencia {0} non corresp # data is not an interpolator dump NOT_INTERPOLATOR_DUMP_DATA = os datos non están no baleirado de datos do interpolador -# number of estimated parameters mismatch, expected {0} got {1} -ESTIMATED_PARAMETERS_NUMBER_MISMATCH = <MISSING TRANSLATION> - # debug dump is already active for this thread DEBUG_DUMP_ALREADY_ACTIVE = <MISSING TRANSLATION> diff --git a/src/main/resources/assets/org/orekit/rugged/RuggedMessages_it.utf8 b/src/main/resources/assets/org/orekit/rugged/RuggedMessages_it.utf8 index 3b920b0c..fff2dea9 100644 --- a/src/main/resources/assets/org/orekit/rugged/RuggedMessages_it.utf8 +++ b/src/main/resources/assets/org/orekit/rugged/RuggedMessages_it.utf8 @@ -25,9 +25,6 @@ EMPTY_TILE = il quadrante è vuoto : {0} ⨉ {1} # unknown sensor {0} UNKNOWN_SENSOR = sensore {0} sconosciuto -#unknown pixel in mapping {0} -UNKNOWN_PIXEL = <MISSING TRANSLATION> - # line-of-sight does not reach ground LINE_OF_SIGHT_DOES_NOT_REACH_GROUND = la linea di visibilità non raggiunge il suolo @@ -49,9 +46,6 @@ FRAMES_MISMATCH_WITH_INTERPOLATOR_DUMP = il riferimento {0} non corrisponde al r # data is not an interpolator dump NOT_INTERPOLATOR_DUMP_DATA = i dati non corrispondono a un salvatagggio d''interpolatore -# number of estimated parameters mismatch, expected {0} got {1} -ESTIMATED_PARAMETERS_NUMBER_MISMATCH = <MISSING TRANSLATION> - # debug dump is already active for this thread DEBUG_DUMP_ALREADY_ACTIVE = <MISSING TRANSLATION> diff --git a/src/main/resources/assets/org/orekit/rugged/RuggedMessages_no.utf8 b/src/main/resources/assets/org/orekit/rugged/RuggedMessages_no.utf8 index 92489408..d69fbc49 100644 --- a/src/main/resources/assets/org/orekit/rugged/RuggedMessages_no.utf8 +++ b/src/main/resources/assets/org/orekit/rugged/RuggedMessages_no.utf8 @@ -25,9 +25,6 @@ EMPTY_TILE = flisen er tom: {0} ⨉ {1} # unknown sensor {0} UNKNOWN_SENSOR = ukjent mÃ¥ler {0} -#unknown pixel in mapping {0} -UNKNOWN_PIXEL = <MISSING TRANSLATION> - # line-of-sight does not reach ground LINE_OF_SIGHT_DOES_NOT_REACH_GROUND = synslinjen nÃ¥r ikke bakken @@ -49,9 +46,6 @@ FRAMES_MISMATCH_WITH_INTERPOLATOR_DUMP = rammen {0} stemmer ikke med rammen {1} # data is not an interpolator dump NOT_INTERPOLATOR_DUMP_DATA = dataen er ikke en interpolar-dump -# number of estimated parameters mismatch, expected {0} got {1} -ESTIMATED_PARAMETERS_NUMBER_MISMATCH = <MISSING TRANSLATION> - # debug dump is already active for this thread DEBUG_DUMP_ALREADY_ACTIVE = <MISSING TRANSLATION> diff --git a/src/main/resources/assets/org/orekit/rugged/RuggedMessages_ro.utf8 b/src/main/resources/assets/org/orekit/rugged/RuggedMessages_ro.utf8 index 24e0e0d0..f9c0eac7 100644 --- a/src/main/resources/assets/org/orekit/rugged/RuggedMessages_ro.utf8 +++ b/src/main/resources/assets/org/orekit/rugged/RuggedMessages_ro.utf8 @@ -25,9 +25,6 @@ EMPTY_TILE = regiunea este vidă: {0} ⨉ {1} # unknown sensor {0} UNKNOWN_SENSOR = senzor necunoscut {0} -#unknown pixel in mapping {0} -UNKNOWN_PIXEL = <MISSING TRANSLATION> - # line-of-sight does not reach ground LINE_OF_SIGHT_DOES_NOT_REACH_GROUND = linia de vizare nu ajunge la sol @@ -49,9 +46,6 @@ FRAMES_MISMATCH_WITH_INTERPOLATOR_DUMP = sistemul de coordonate {0} nu se potriv # data is not an interpolator dump NOT_INTERPOLATOR_DUMP_DATA = datele nu reprezintă o copie de siguranță a interpolatorului -# number of estimated parameters mismatch, expected {0} got {1} -ESTIMATED_PARAMETERS_NUMBER_MISMATCH = <MISSING TRANSLATION> - # debug dump is already active for this thread DEBUG_DUMP_ALREADY_ACTIVE = <MISSING TRANSLATION> diff --git a/src/test/java/org/orekit/rugged/errors/RuggedMessagesTest.java b/src/test/java/org/orekit/rugged/errors/RuggedMessagesTest.java index 913b3d7d..9755c416 100644 --- a/src/test/java/org/orekit/rugged/errors/RuggedMessagesTest.java +++ b/src/test/java/org/orekit/rugged/errors/RuggedMessagesTest.java @@ -30,7 +30,7 @@ public class RuggedMessagesTest { private final String[] LANGUAGES_LIST = { "da", "de", "en", "es", "fr", "gl", "it", "no", "ro" } ; @Test public void testMessageNumber() { - Assert.assertEquals(32, RuggedMessages.values().length); + Assert.assertEquals(30, RuggedMessages.values().length); } @Test -- GitLab