Skip to content

Commit

Permalink
Removed unused code
Browse files Browse the repository at this point in the history
  • Loading branch information
AliFlux committed Nov 3, 2018
1 parent cef2822 commit c0a0d10
Showing 1 changed file with 0 additions and 10 deletions.
10 changes: 0 additions & 10 deletions server.py
Original file line number Diff line number Diff line change
Expand Up @@ -27,16 +27,6 @@
lock = threading.Lock()

class serverHandler(BaseHTTPRequestHandler):
def log_message(self, format, *args):
return

def translate(self, sensor_val, in_from, in_to, out_from, out_to):
out_range = out_to - out_from
in_range = in_to - in_from
in_val = sensor_val - in_from
val=(float(in_val)/in_range)*out_range
out_val = out_from+val
return out_val

def ensureDirectory(self, directory):

Expand Down

0 comments on commit c0a0d10

Please sign in to comment.