From: Matthias Schmidt Date: Thu, 27 Jun 2019 16:23:03 +0000 (+0200) Subject: Remove comments X-Git-Tag: 5.2.0_Alpha_3~26^2~1 X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=2a171a64598431e20358fb37a440617107baa6a5;p=GitHub%2FWoltLab%2FWCF.git Remove comments --- diff --git a/wcfsetup/install/files/lib/data/AbstractDatabaseObjectAction.class.php b/wcfsetup/install/files/lib/data/AbstractDatabaseObjectAction.class.php index 99f32de225..4d8c9f508a 100644 --- a/wcfsetup/install/files/lib/data/AbstractDatabaseObjectAction.class.php +++ b/wcfsetup/install/files/lib/data/AbstractDatabaseObjectAction.class.php @@ -365,8 +365,6 @@ abstract class AbstractDatabaseObjectAction implements IDatabaseObjectAction, ID $tableName = call_user_func([$this->className, 'getDatabaseTableName']); $indexName = call_user_func([$this->className, 'getDatabaseTableIndexName']); - // instead of executing one query per object id, execute queries - // for batches of up to 1000 object ids at once $itemsPerLoop = 1000; $loopCount = ceil(count($this->objectIDs) / $itemsPerLoop); diff --git a/wcfsetup/install/files/lib/data/DatabaseObjectEditor.class.php b/wcfsetup/install/files/lib/data/DatabaseObjectEditor.class.php index 1e4239635c..d367c1c9fc 100644 --- a/wcfsetup/install/files/lib/data/DatabaseObjectEditor.class.php +++ b/wcfsetup/install/files/lib/data/DatabaseObjectEditor.class.php @@ -102,8 +102,6 @@ abstract class DatabaseObjectEditor extends DatabaseObjectDecorator implements I public static function deleteAll(array $objectIDs = []) { $affectedCount = 0; - // instead of executing one query per object id, execute queries - // for batches of up to 1000 object ids at once $itemsPerLoop = 1000; $loopCount = ceil(count($objectIDs) / $itemsPerLoop); diff --git a/wcfsetup/install/files/lib/system/edit/EditHistoryManager.class.php b/wcfsetup/install/files/lib/system/edit/EditHistoryManager.class.php index 9206348026..1567330c0a 100644 --- a/wcfsetup/install/files/lib/system/edit/EditHistoryManager.class.php +++ b/wcfsetup/install/files/lib/system/edit/EditHistoryManager.class.php @@ -77,8 +77,6 @@ class EditHistoryManager extends SingletonFactory { public function delete($objectType, array $objectIDs) { $objectTypeID = $this->getObjectTypeID($objectType); - // instead of executing one query per object id, execute queries - // for batches of up to 1000 object ids at once $itemsPerLoop = 1000; $loopCount = ceil(count($objectIDs) / $itemsPerLoop); diff --git a/wcfsetup/install/files/lib/system/search/mysql/MysqlSearchIndexManager.class.php b/wcfsetup/install/files/lib/system/search/mysql/MysqlSearchIndexManager.class.php index 4bad6d155d..6c17ba7682 100644 --- a/wcfsetup/install/files/lib/system/search/mysql/MysqlSearchIndexManager.class.php +++ b/wcfsetup/install/files/lib/system/search/mysql/MysqlSearchIndexManager.class.php @@ -44,8 +44,6 @@ class MysqlSearchIndexManager extends AbstractSearchIndexManager { * @inheritDoc */ public function delete($objectType, array $objectIDs) { - // instead of executing one query per object id, execute queries - // for batches of up to 1000 object ids at once $itemsPerLoop = 1000; $loopCount = ceil(count($objectIDs) / $itemsPerLoop); $tableName = SearchIndexManager::getTableName($objectType);