Revert "expiry and limit getters and setters for WC_Product_Download"

This reverts commit bdda142d24.
This commit is contained in:
Rodrigo Primo 2018-04-25 17:27:59 -03:00
parent e2471d215f
commit bf634b0885
1 changed files with 0 additions and 40 deletions

View File

@ -162,26 +162,6 @@ class WC_Product_Download implements ArrayAccess {
}
}
/**
* Set download limit.
*
* @since 3.4.0
* @param int $value Download limit.
*/
public function set_limit( $value ) {
$this->data['limit'] = absint( $value );
}
/**
* Set download expiry.
*
* @since 3.4.0
* @param int $value Days after download expires.
*/
public function set_expiry( $value ) {
$this->data['expiry'] = absint( $value );
}
/*
|--------------------------------------------------------------------------
| Getters
@ -226,26 +206,6 @@ class WC_Product_Download implements ArrayAccess {
return $this->data['file'];
}
/**
* Get download limit.
*
* @since 3.4.0
* @return int Download Limit.
*/
public function get_limit() {
return $this->data['limit'];
}
/**
* Get download expiry.
*
* @since 3.4.0
* @return int Download expiry days.
*/
public function get_expiry() {
return $this->data['expiry'];
}
/*
|--------------------------------------------------------------------------
| ArrayAccess/Backwards compatibility.