Skip to content

Commit

Permalink
Remove useless code
Browse files Browse the repository at this point in the history
  • Loading branch information
marciovicente committed May 23, 2014
1 parent 681b65e commit 981bd89
Showing 1 changed file with 0 additions and 5 deletions.
5 changes: 0 additions & 5 deletions main.py
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,6 @@ def tail(self, obj):
return obj.index

def insert_in_lisch(self, old_obj, new_obj, index=None):
# import pdb; pdb.set_trace()
obj_next = None
if old_obj.index: # if they has a next
self.file.seek(old_obj.index * self.STRUCT_SIZE + len(pickle.dumps(self.SIZE_OF_FILE)))
Expand Down Expand Up @@ -161,12 +160,9 @@ def point_to_value(self, value, rec=None):

if obj and obj.index and (value is not obj.value):
self.point_to_value(value=obj.index, rec=True)
# maybe the problem is here, because I must pass 9 (where 21 is placed and I passing 10)
self.file.seek(index * self.STRUCT_SIZE + len(pickle.dumps(self.SIZE_OF_FILE)))

def insert_record(self):
# os.path.getsize(self.filename) -> 'full archive'

value = raw_input()
label = raw_input()
age = raw_input()
Expand Down Expand Up @@ -276,7 +272,6 @@ def _count_query(value, next_obj=None):
return 1
return 1 + _count_query(value=value, next_obj=obj.index)

# init
self.open_file()
count = recorded = 0
for i in range(self.SIZE_OF_FILE):
Expand Down

0 comments on commit 981bd89

Please sign in to comment.