Forráskód Böngészése

Remove unnecessary code

dustin.born 7 éve
szülő
commit
2ee7fe933b
1 módosított fájl, 0 hozzáadás és 10 törlés
  1. 0 10
      code/ID2TLib/CommunicationProcessor.py

+ 0 - 10
code/ID2TLib/CommunicationProcessor.py

@@ -3,16 +3,6 @@ from random import randrange
 from Attack.MembersMgmtCommAttack import MessageType
 from Attack.MembersMgmtCommAttack import Message
 
-# needed because of machine inprecision. E.g A time difference of 0.1s is stored as >0.1s
-EPS_TOLERANCE = 1e-13  # works for a difference of 0.1, no less
-
-def greater_than(a: float, b: float):
-    """
-    A greater than operator desgined to handle slight machine inprecision up to EPS_TOLERANCE.
-    :return: True if a > b, otherwise False
-    """
-    return b - a < -EPS_TOLERANCE
-
 class CommunicationProcessor():
     """
     Class to process parsed input CSV/XML data and retrieve a mapping or other information.