From 15d92cea45b46cb97e801279bd5778d1c2ee4cdf Mon Sep 17 00:00:00 2001 From: Olle Jonsson Date: Sat, 19 Mar 2016 15:09:08 +0100 Subject: [PATCH] ParserFile: Drop unused public method --- lib/github_changelog_generator/parser_file.rb | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/lib/github_changelog_generator/parser_file.rb b/lib/github_changelog_generator/parser_file.rb index a85d969..0fc58e9 100644 --- a/lib/github_changelog_generator/parser_file.rb +++ b/lib/github_changelog_generator/parser_file.rb @@ -16,14 +16,11 @@ module GitHubChangelogGenerator end def read_default_file + path = Pathname(File.expand_path(FILENAME)) File.open(path) if path.exist? end - def path - @path ||= Pathname(File.expand_path(FILENAME)) - end - - # Destructively change @options using data in configured options file. + # Set @options using configuration file lines. def parse! return unless file file.each_line { |line| parse_line!(line) }