@@ -688,13 +688,6 @@ def current_section
688688 section
689689 end
690690
691- ##
692- # Is part of this thing was defined in +file+?
693-
694- def defined_in? ( file )
695- @in_files . include? ( file )
696- end
697-
698691 def display ( method_attr ) # :nodoc:
699692 if method_attr . is_a? RDoc ::Attr
700693 "#{ method_attr . definition } #{ method_attr . pretty_name } "
@@ -713,41 +706,13 @@ def display(method_attr) # :nodoc:
713706 def each_ancestor ( &_ ) # :nodoc:
714707 end
715708
716- ##
717- # Iterator for attributes
718-
719- def each_attribute # :yields: attribute
720- @attributes . each { |a | yield a }
721- end
722-
723709 ##
724710 # Iterator for classes and modules
725711
726712 def each_classmodule ( &block ) # :yields: module
727713 classes_and_modules . sort . each ( &block )
728714 end
729715
730- ##
731- # Iterator for constants
732-
733- def each_constant # :yields: constant
734- @constants . each { |c | yield c }
735- end
736-
737- ##
738- # Iterator for included modules
739-
740- def each_include # :yields: include
741- @includes . each do |i | yield i end
742- end
743-
744- ##
745- # Iterator for extension modules
746-
747- def each_extend # :yields: extend
748- @extends . each do |e | yield e end
749- end
750-
751716 ##
752717 # Iterator for methods
753718
@@ -847,13 +812,6 @@ def find_external_alias_named(name)
847812 end
848813 end
849814
850- ##
851- # Finds a file with +name+ in this context
852-
853- def find_file_named name
854- @store . find_file_named name
855- end
856-
857815 ##
858816 # Finds an instance method with +name+ in this context
859817
@@ -871,7 +829,7 @@ def find_local_symbol(symbol)
871829 find_attribute_named ( symbol ) or
872830 find_external_alias_named ( symbol ) or
873831 find_module_named ( symbol ) or
874- find_file_named ( symbol )
832+ @store . find_file_named ( symbol )
875833 end
876834
877835 ##
0 commit comments