Remove unnecessary path method

This commit is contained in:
Alex Ling
2022-05-22 05:17:05 +00:00
parent e6dbeb623b
commit 5b23a112b2
3 changed files with 4 additions and 12 deletions

View File

@@ -14,6 +14,7 @@ class DirEntry < Entry
def initialize(@dir_path, @book)
storage = Storage.default
@path = @dir_path
@encoded_path = URI.encode @dir_path
@title = File.basename @dir_path
@encoded_title = URI.encode @title
@@ -56,10 +57,6 @@ class DirEntry < Entry
@pages = sorted_files.size
end
def path : String
@dir_path
end
def read_page(page_num)
img = nil
begin