diff --git a/src/__phutil_library_map__.php b/src/__phutil_library_map__.php index ae6c5383ee..ea9c7b67c2 100644 --- a/src/__phutil_library_map__.php +++ b/src/__phutil_library_map__.php @@ -690,7 +690,6 @@ phutil_register_library_map(array( 'LiskMigrationIterator' => 'infrastructure/storage/lisk/LiskMigrationIterator.php', 'LiskRawMigrationIterator' => 'infrastructure/storage/lisk/LiskRawMigrationIterator.php', 'ManiphestAction' => 'applications/maniphest/constants/ManiphestAction.php', - 'ManiphestAuxiliaryFieldSpecification' => 'applications/maniphest/auxiliaryfield/ManiphestAuxiliaryFieldSpecification.php', 'ManiphestBatchEditController' => 'applications/maniphest/controller/ManiphestBatchEditController.php', 'ManiphestConfiguredCustomField' => 'applications/maniphest/field/ManiphestConfiguredCustomField.php', 'ManiphestConstants' => 'applications/maniphest/constants/ManiphestConstants.php', diff --git a/src/applications/maniphest/auxiliaryfield/ManiphestAuxiliaryFieldSpecification.php b/src/applications/maniphest/auxiliaryfield/ManiphestAuxiliaryFieldSpecification.php deleted file mode 100644 index 60df075771..0000000000 --- a/src/applications/maniphest/auxiliaryfield/ManiphestAuxiliaryFieldSpecification.php +++ /dev/null @@ -1,56 +0,0 @@ -establishConnection('w'); - $update = array(); - $remove = array(); - - foreach ($map as $key => $value) { - $index = PhabricatorHash::digestForIndex($key); - if ($value === null) { - $remove[$index] = true; - } else { - $update[$index] = $value; - } - } - - if ($remove) { - queryfx( - $conn_w, - 'DELETE FROM %T WHERE objectPHID = %s AND fieldIndex IN (%Ls)', - $table->getTableName(), - $task->getPHID(), - array_keys($remove)); - } - - if ($update) { - $sql = array(); - foreach ($update as $index => $val) { - $sql[] = qsprintf( - $conn_w, - '(%s, %s, %s)', - $task->getPHID(), - $index, - $val); - } - queryfx( - $conn_w, - 'INSERT INTO %T (objectPHID, fieldIndex, fieldValue) - VALUES %Q ON DUPLICATE KEY - UPDATE fieldValue = VALUES(fieldValue)', - $table->getTableName(), - implode(', ', $sql)); - } - - } - -}