jenkins-bot has submitted this change and it was merged. Change subject: Remove deprecated and unused methods ......................................................................
Remove deprecated and unused methods Change-Id: I9850460980b612f3f87eb1d9489039570ccc15ca --- M DataModel/Entity/Property.php 1 file changed, 0 insertions(+), 41 deletions(-) Approvals: Tobias Gritschacher: Looks good to me, approved jenkins-bot: Verified diff --git a/DataModel/Entity/Property.php b/DataModel/Entity/Property.php index 64bfe9c..edd3e09 100644 --- a/DataModel/Entity/Property.php +++ b/DataModel/Entity/Property.php @@ -46,47 +46,6 @@ protected $dataType = null; /** - * Returns the DataType of the property. - * - * @since 0.2 - * @deprecated since 0.4 - * - * @return DataType - * @throws InvalidArgumentException - */ - public function getDataType() { - if ( $this->dataType === null ) { - if ( array_key_exists( 'datatype', $this->data ) ) { - $registry = new LibRegistry( Settings::singleton() ); - - $this->dataType = $registry->getDataTypeFactory()->getType( $this->data['datatype'] ); - - if ( $this->dataType === null ) { - throw new InvalidArgumentException( 'The DataType of the property is not valid' ); - } - } - else { - throw new InvalidArgumentException( 'The DataType of the property is not known' ); - } - } - - return $this->dataType; - } - - /** - * Sets the DataType of the property. - * - * @since 0.2 - * @deprecated since 0.4 - * - * @param DataType $dataType - */ - public function setDataType( DataType $dataType ) { - $this->dataType = $dataType; - $this->setDataTypeId( $dataType->getId() ); - } - - /** * @since 0.4 * * @param string $dataTypeId -- To view, visit https://gerrit.wikimedia.org/r/78230 To unsubscribe, visit https://gerrit.wikimedia.org/r/settings Gerrit-MessageType: merged Gerrit-Change-Id: I9850460980b612f3f87eb1d9489039570ccc15ca Gerrit-PatchSet: 1 Gerrit-Project: mediawiki/extensions/WikibaseDataModel Gerrit-Branch: master Gerrit-Owner: Jeroen De Dauw <jeroended...@gmail.com> Gerrit-Reviewer: Jeroen De Dauw <jeroended...@gmail.com> Gerrit-Reviewer: Tobias Gritschacher <tobias.gritschac...@wikimedia.de> Gerrit-Reviewer: jenkins-bot _______________________________________________ MediaWiki-commits mailing list MediaWiki-commits@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits