Skip to content

Commit

Permalink
Remove defunct Rugged::Diff::Line#hunk and Rugged::Diff::Line#owner.
Browse files Browse the repository at this point in the history
Fixes #390.
  • Loading branch information
arthurschreiber committed Jul 15, 2014
1 parent c1f4a3b commit a644974
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 3 deletions.
6 changes: 6 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
* Remove defunct `Rugged::Diff::Line#hunk` and `Rugged::Diff::Line#owner`.

Fixes #390.

*Arthur Schreiber*

* Remove `Rugged::Diff#tree` and `Rugged::Diff#owner`.

Fixes #389.
Expand Down
4 changes: 1 addition & 3 deletions lib/rugged/diff/line.rb
Original file line number Diff line number Diff line change
@@ -1,9 +1,7 @@
module Rugged
class Diff
class Line
attr_reader :line_origin, :content, :owner, :old_lineno, :new_lineno, :content_offset

alias hunk owner
attr_reader :line_origin, :content, :old_lineno, :new_lineno, :content_offset

def context?
@line_origin == :context
Expand Down

0 comments on commit a644974

Please sign in to comment.