Browse Source

Remove unused function and constant

This function and constant were formerly used for the interval
selection. Since the selection functionality was moved to C++,
this code is no longer necessary here. (Equivalents can
be found in the C++ code)
dustin.born 6 years ago
parent
commit
e2350338b4
1 changed files with 0 additions and 9 deletions
  1. 0 9
      code/ID2TLib/Botnet/CommunicationProcessor.py

+ 0 - 9
code/ID2TLib/Botnet/CommunicationProcessor.py

@@ -3,15 +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():
     """