[BUGFIX] Remove bad PHP code in LiveSearch
[Packages/TYPO3.CMS.git] / typo3 / sysext / backend / Classes / Search / LiveSearch / LiveSearch.php
index 7ac4c61..4aa7cd2 100644 (file)
@@ -80,23 +80,6 @@ class LiveSearch
         $this->queryParser = GeneralUtility::makeInstance(\TYPO3\CMS\Backend\Search\LiveSearch\QueryParser::class);
     }
 
-    /**
-     * Find records from database based on the given $searchQuery.
-     *
-     * @param string $searchQuery
-     * @return string Edit link to an page record if exists. Otherwise an empty string will returned
-     */
-    public function findPage($searchQuery)
-    {
-        $link = '';
-        $pageId = $this->queryParser->getId($searchQuery);
-        $pageRecord = $this->findPageById($pageId);
-        if (!empty($pageRecord)) {
-            $link = $this->getEditLink(self::PAGE_JUMP_TABLE, $this->findPageById($pageId));
-        }
-        return $link;
-    }
-
     /**
      * Find records from database based on the given $searchQuery.
      *