File tree 2 files changed +0
-15
lines changed
lib/overcommit/hook_context
2 files changed +0
-15
lines changed Original file line number Diff line number Diff line change @@ -59,14 +59,6 @@ def modified_files
59
59
[ ]
60
60
end
61
61
62
- # Returns a set of lines that have been modified for a file.
63
- #
64
- # By default, this returns an empty set. Subclasses should implement if
65
- # there is a concept of files changing for the type of hook being run.
66
- def modified_lines ( _file )
67
- Set . new
68
- end
69
-
70
62
# Returns an array of lines passed to the hook via STDIN.
71
63
def input_lines
72
64
@input_lines ||= @input . read . split ( "\n " )
Original file line number Diff line number Diff line change @@ -99,13 +99,6 @@ def modified_files
99
99
@modified_files
100
100
end
101
101
102
- # @deprecated
103
- # TODO: Remove this once we've moved all existing hooks to stop using this
104
- # endpoint
105
- def modified_lines ( file )
106
- modified_lines_in_file ( file )
107
- end
108
-
109
102
# Returns the set of line numbers corresponding to the lines that were
110
103
# changed in a specified file.
111
104
def modified_lines_in_file ( file )
You can’t perform that action at this time.
0 commit comments