Skip to content

Commit

Permalink
Removed unused code from api
Browse files Browse the repository at this point in the history
    - Removed a few lines that were thought to be required for future
      features. One step at a time.

Change-Id: I0ae88d6144dacec717eac97a8f28ae17d2acad06
  • Loading branch information
a8 committed Jun 19, 2012
1 parent 2a8689e commit 5ac8138
Showing 1 changed file with 0 additions and 10 deletions.
10 changes: 0 additions & 10 deletions codespeed/api.py
Expand Up @@ -274,10 +274,6 @@ def _populate_by_obj(self):
self.obj.branch = self.obj.revision.branch
#self.obj.result = self.obj
setattr(self.obj, 'result', self.obj)
# TODO (a8): add user to models
setattr(self.obj, 'user', User.objects.get(pk=1))
#setattr(self.obj, 'user', None)
#setattr(self.obj, 'notify', None)

def _check_data(self):
"""See if all mandatory data is there"""
Expand Down Expand Up @@ -375,8 +371,6 @@ class ResultBundleResource(Resource):
benchmark = fields.ToOneField(BenchmarkResource, 'benchmark')
environment = fields.ToOneField(EnvironmentResource, 'environment')
result = fields.ToOneField(ResultResource, 'result')
#user = fields.ToOneField(UserResource, 'user', null=True)
#notify = fields.CharField(attribute='notify', null=True)

class Meta:
resource_name = 'benchmark-result'
Expand Down Expand Up @@ -418,10 +412,6 @@ def obj_get(self, request=None, **kwargs):
result.project = result.executable.project
result.branch = result.revision.branch
setattr(result, 'result', result)
# TODO (a8): add user to models
#setattr(result, 'user', User.objects.get(pk=1))
#setattr(result, 'user', None)
#setattr(result, 'notify', None)
return result

def obj_create(self, bundle, request=None, **kwargs):
Expand Down

0 comments on commit 5ac8138

Please sign in to comment.