Skip to content

Commit

Permalink
Remove unnecessary add story owner code.
Browse files Browse the repository at this point in the history
  • Loading branch information
forest committed Jan 5, 2017
1 parent 93393db commit d8100fb
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 17 deletions.
5 changes: 0 additions & 5 deletions lib/tracker_api/endpoints/story_owners.rb
Original file line number Diff line number Diff line change
Expand Up @@ -15,11 +15,6 @@ def get(project_id, story_id, params={})
Resources::Person.new({ story_id: story_id }.merge(owner))
end
end

# def create(project_id, story_id, params={})
# data = client.post("/projects/#{project_id}/stories/#{story_id}/owners", params: params)
# Resources::Person.new({ client: client }.merge(data))
# end
end
end
end
12 changes: 0 additions & 12 deletions lib/tracker_api/resources/story.rb
Original file line number Diff line number Diff line change
Expand Up @@ -78,18 +78,6 @@ def add_label(label)
self.labels = (labels ? labels.dup : []).push(new_label)
end

# # Assigns owner of story
# # @param [Person|Integer] owner
# def add_owner(person)
# person_id = if person.kind_of?(Person)
# person.id
# else
# person
# end

# Endpoints::StoryOwners.new(client).create(project_id, id, id: person_id)
# end

# Provides a list of all the activity performed on the story.
#
# @param [Hash] params
Expand Down

0 comments on commit d8100fb

Please sign in to comment.