mirror of
https://github.com/hkalexling/Mango.git
synced 2026-03-20 00:00:48 -04:00
Remove unnecessary path method
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user