Skip to content

Commit 52e89c4

Browse files
committed
Remove offset attr from CodeObject
1 parent 760ab3a commit 52e89c4

File tree

2 files changed

+0
-13
lines changed

2 files changed

+0
-13
lines changed

lib/rdoc/code_object.rb

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -69,13 +69,6 @@ class RDoc::CodeObject
6969

7070
attr_reader :metadata
7171

72-
##
73-
# Offset in #file where this CodeObject was defined
74-
#--
75-
# TODO character or byte?
76-
77-
attr_accessor :offset
78-
7972
##
8073
# Sets the parent CodeObject
8174

test/test_rdoc_code_object.rb

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -276,12 +276,6 @@ def test_metadata
276276
assert_equal 'not_rdoc', @co.metadata['markup']
277277
end
278278

279-
def test_offset
280-
@c1_m.offset = 5
281-
282-
assert_equal 5, @c1_m.offset
283-
end
284-
285279
def test_options
286280
assert_kind_of RDoc::Options, @co.options
287281

0 commit comments

Comments
 (0)