Skip to content

Commit

Permalink
Removed the duplicate method in PageRevision.php.
Browse files Browse the repository at this point in the history
Signed-off-by: Abijeet <abijeetpatro@gmail.com>
  • Loading branch information
Abijeet committed Sep 15, 2018
1 parent 16ec4fa commit 2f96962
Showing 1 changed file with 0 additions and 12 deletions.
12 changes: 0 additions & 12 deletions app/PageRevision.php
Expand Up @@ -48,18 +48,6 @@ public function getPrevious()
return null;
}

/**
* Get the current revision for the same page if existing
* @return \BookStack\PageRevision|null
*/
public function getCurrent()
{
if ($id = static::where('page_id', '=', $this->page_id)->max('id')) {
return static::find($id);
}
return null;
}

/**
* Allows checking of the exact class, Used to check entity type.
* Included here to align with entities in similar use cases.
Expand Down

0 comments on commit 2f96962

Please sign in to comment.