From d22be3fad549a09e1f491b80f1eaf75fd9430c4c Mon Sep 17 00:00:00 2001 From: brutzman <brutzman@nps.edu> Date: Thu, 26 Aug 2021 18:22:47 -0700 Subject: [PATCH] clear warning --- .../nps/moves/dis7/utilities/PduFactory.java | 19 ++----------------- 1 file changed, 2 insertions(+), 17 deletions(-) diff --git a/src/edu/nps/moves/dis7/utilities/PduFactory.java b/src/edu/nps/moves/dis7/utilities/PduFactory.java index 4a8a780a45..cb53d6abd1 100644 --- a/src/edu/nps/moves/dis7/utilities/PduFactory.java +++ b/src/edu/nps/moves/dis7/utilities/PduFactory.java @@ -44,7 +44,6 @@ public class PduFactory private final DisTime disTime; private Method getTime; - private boolean useFastPdu = false; /** We can marshal the PDU with a timestamp set to any of several styles. * Remember, you MUST set a timestamp. DIS will regard multiple packets sent @@ -120,15 +119,6 @@ public class PduFactory } } - /** - * Use the default or fast method to create EntityState pdus from input byte streams. - * @param tf true if fast method - */ - public void useFastEspdu(boolean tf) - { - useFastPdu = tf; - } - /** Retrieve the current timestamp in the time stamp style set at factory * instantiation. * @return the current timestamp in the time stamp style set at factory @@ -1539,12 +1529,7 @@ public class PduFactory // NOTE: 'OTHER' is a valid pduTypeEnum, but has no corresponding object case ENTITY_STATE: // if the user has created the factory requesting that he get fast espdus back, give him those. - if (useFastPdu) { - aPdu = new FastEntityStatePdu(); - } - else { - aPdu = new EntityStatePdu(); - } + aPdu = new EntityStatePdu(); break; case FIRE: @@ -1896,7 +1881,7 @@ public class PduFactory if (nextByte != 0) { remainingNonZeroDataFound = true; - continue; +// continue; } } if (!remainingNonZeroDataFound) -- GitLab