Skip to content

Commit

Permalink
removed deprecated changelog functions getRevisionInfo() and getRevis…
Browse files Browse the repository at this point in the history
…ions() outside of class
  • Loading branch information
selfthinker committed Apr 19, 2016
1 parent 60c4278 commit aa13c9a
Showing 1 changed file with 0 additions and 66 deletions.
66 changes: 0 additions & 66 deletions inc/changelog.php
Original file line number Diff line number Diff line change
Expand Up @@ -1057,69 +1057,3 @@ protected function getFilename() {
return mediaFN($this->id);
}
}

/**
* Get the changelog information for a specific page id
* and revision (timestamp). Adjacent changelog lines
* are optimistically parsed and cached to speed up
* consecutive calls to getRevisionInfo. For large
* changelog files, only the chunk containing the
* requested changelog line is read.
*
* @deprecated 2013-11-20
*
* @author Ben Coburn <btcoburn@silicodon.net>
* @author Kate Arzamastseva <pshns@ukr.net>
*
* @param string $id
* @param int $rev
* @param int $chunk_size
* @param bool $media
* @return array|bool
*/
function getRevisionInfo($id, $rev, $chunk_size = 8192, $media = false) {
dbg_deprecated('class PageChangeLog or class MediaChangelog');
if($media) {
$changelog = new MediaChangeLog($id, $chunk_size);
} else {
$changelog = new PageChangeLog($id, $chunk_size);
}
return $changelog->getRevisionInfo($rev);
}

/**
* Return a list of page revisions numbers
* Does not guarantee that the revision exists in the attic,
* only that a line with the date exists in the changelog.
* By default the current revision is skipped.
*
* The current revision is automatically skipped when the page exists.
* See $INFO['meta']['last_change'] for the current revision.
*
* For efficiency, the log lines are parsed and cached for later
* calls to getRevisionInfo. Large changelog files are read
* backwards in chunks until the requested number of changelog
* lines are recieved.
*
* @deprecated 2013-11-20
*
* @author Ben Coburn <btcoburn@silicodon.net>
* @author Kate Arzamastseva <pshns@ukr.net>
*
* @param string $id the page of interest
* @param int $first skip the first n changelog lines
* @param int $num number of revisions to return
* @param int $chunk_size
* @param bool $media
* @return array
*/
function getRevisions($id, $first, $num, $chunk_size = 8192, $media = false) {
dbg_deprecated('class PageChangeLog or class MediaChangelog');
if($media) {
$changelog = new MediaChangeLog($id, $chunk_size);
} else {
$changelog = new PageChangeLog($id, $chunk_size);
}
return $changelog->getRevisions($first, $num);
}

0 comments on commit aa13c9a

Please sign in to comment.