changeset 160:3dc1ba5fec31

applied patch removing unused methods from dimichxp
author Scott Chacon <schacon@gmail.com>
date Wed, 27 May 2009 17:15:08 -0700
parents 85eae64ca9e2
children 134915637cf7
files git_handler.py
diffstat 1 files changed, 0 insertions(+), 25 deletions(-) [+]
line wrap: on
line diff
--- a/git_handler.py	Wed May 27 17:14:41 2009 -0700
+++ b/git_handler.py	Wed May 27 17:15:08 2009 -0700
@@ -19,31 +19,6 @@
 
 import math
 
-def seconds_to_offset(time):
-    hours = (float(time) / 60 / 60)
-    hour_diff = math.fmod(time, 60)
-    minutes = int(hour_diff)
-    hours = int(math.floor(hours))
-    if hours > 12:
-        sign = '+'
-        hours = 12 - (hours - 12)
-    elif hours > 0:
-        sign = '-'
-    else:
-        sign = ''
-    return sign + str(hours).rjust(2, '0') + str(minutes).rjust(2, '0')
-
-def offset_to_seconds(offset):
-    if len(offset) == 5:
-        sign = offset[0:1]
-        hours = int(offset[1:3])
-        minutes = int(offset[3:5])
-        if sign == '+':
-            hours = 12 + (12 - hours)
-        return (hours * 60 * 60) + (minutes) * 60
-    else:
-        return 0
-
 class GitHandler(object):
 
     def __init__(self, dest_repo, ui):