API is now pretty much tested.
[wolnelektury.git] / src / api / helpers.py
index 62578e7..ffe9284 100644 (file)
@@ -2,12 +2,8 @@
 # This file is part of Wolnelektury, licensed under GNU Affero GPLv3 or later.
 # Copyright © Fundacja Nowoczesna Polska. See NOTICE for more information.
 #
-from time import mktime
 from piston.resource import Resource
 
-def timestamp(dtime):
-    "converts a datetime.datetime object to a timestamp int"
-    return int(mktime(dtime.timetuple()))
 
 class CsrfExemptResource(Resource):
     """A Custom Resource that is csrf exempt"""