diff --git a/lib/PostText/Model/Remark.pm b/lib/PostText/Model/Remark.pm index 7f600bd..6c04d8d 100644 --- a/lib/PostText/Model/Remark.pm +++ b/lib/PostText/Model/Remark.pm @@ -4,14 +4,6 @@ use Mojo::Base -base, -signatures; has 'pg'; -sub new($class, $pg, $pg_reference) { - bless { - $pg => $pg_reference, - remarks_per_page => 5, - date_format => 'Dy Mon FMDD HH24:MI TZ YYYY' - }, $class -} - sub by_page_for($self, $thread_id, $this_page = 1) { my $date_format = $self->{'date_format'}; my $row_count = $self->{'remarks_per_page'}; diff --git a/lib/PostText/Model/Thread.pm b/lib/PostText/Model/Thread.pm index 54a7520..1e981af 100644 --- a/lib/PostText/Model/Thread.pm +++ b/lib/PostText/Model/Thread.pm @@ -4,14 +4,6 @@ use Mojo::Base -base, -signatures; has 'pg'; -sub new($class, $pg, $pg_reference) { - bless { - $pg => $pg_reference, - threads_per_page => 5, - date_format => 'Dy Mon FMDD HH24:MI TZ YYYY' - }, $class -} - sub create($self, $author, $title, $body, $hidden = 0, $flagged = 0) { my @data = ($author, $title, $body, $hidden, $flagged);