From fb6e0ec767eed604a01a1414b94e8ea7af1ccc1a Mon Sep 17 00:00:00 2001 From: Derick Alangi Date: Thu, 29 Aug 2019 12:44:53 +0100 Subject: [PATCH] mime,logging: Remove unused private methods These methods are defined but not used. Change-Id: I91003a9a3f2a56114de5baede6a1034ee4ed8d80 --- includes/libs/mime/MSCompoundFileReader.php | 5 ----- includes/logging/LogEventsList.php | 15 --------------- 2 files changed, 20 deletions(-) diff --git a/includes/libs/mime/MSCompoundFileReader.php b/includes/libs/mime/MSCompoundFileReader.php index 8afaa38e02..0383def62c 100644 --- a/includes/libs/mime/MSCompoundFileReader.php +++ b/includes/libs/mime/MSCompoundFileReader.php @@ -182,11 +182,6 @@ class MSCompoundFileReader { return $this->unpack( $block, 0, $struct ); } - private function unpackSector( $sectorNumber, $struct ) { - $offset = $this->sectorOffset( $sectorNumber ); - return $this->unpackOffset( $offset, array_sum( $struct ) ); - } - private function unpack( $block, $offset, $struct ) { $data = []; foreach ( $struct as $key => $length ) { diff --git a/includes/logging/LogEventsList.php b/includes/logging/LogEventsList.php index 66be436da4..4179bd5882 100644 --- a/includes/logging/LogEventsList.php +++ b/includes/logging/LogEventsList.php @@ -220,21 +220,6 @@ class LogEventsList extends ContextSource { ]; } - private function getDefaultQuery() { - if ( !isset( $this->mDefaultQuery ) ) { - $this->mDefaultQuery = $this->getRequest()->getQueryValues(); - unset( $this->mDefaultQuery['title'] ); - unset( $this->mDefaultQuery['dir'] ); - unset( $this->mDefaultQuery['offset'] ); - unset( $this->mDefaultQuery['limit'] ); - unset( $this->mDefaultQuery['order'] ); - unset( $this->mDefaultQuery['month'] ); - unset( $this->mDefaultQuery['year'] ); - } - - return $this->mDefaultQuery; - } - /** * @param array $queryTypes * @return array Form descriptor -- 2.20.1