mime,logging: Remove unused private methods
authorDerick Alangi <alangiderick@gmail.com>
Thu, 29 Aug 2019 11:44:53 +0000 (12:44 +0100)
committerKrinkle <krinklemail@gmail.com>
Thu, 29 Aug 2019 17:46:44 +0000 (17:46 +0000)
These methods are defined but not used.

Change-Id: I91003a9a3f2a56114de5baede6a1034ee4ed8d80

includes/libs/mime/MSCompoundFileReader.php
includes/logging/LogEventsList.php

index 8afaa38..0383def 100644 (file)
@@ -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 ) {
index 66be436..4179bd5 100644 (file)
@@ -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