Skip to content

Commit 67ba57b

Browse files
committed
clean up
1 parent f2a4770 commit 67ba57b

File tree

2 files changed

+1
-30
lines changed

2 files changed

+1
-30
lines changed

src/Expirable.php

Lines changed: 0 additions & 29 deletions
Original file line numberDiff line numberDiff line change
@@ -34,10 +34,6 @@ public function reviveExpired($revivalTime = null )
3434
{
3535
if($this->expire_at < Carbon::now())
3636
{
37-
if ($this->fireModelEvent('revivingExpiry') === false) {
38-
return false;
39-
}
40-
4137
$revivalTime = $revivalTime ? $revivalTime : $this->getConfiguration()['revival_time'];
4238

4339
if(!empty($revivalTime))
@@ -46,8 +42,6 @@ public function reviveExpired($revivalTime = null )
4642

4743
$result = $this->save();
4844

49-
$this->fireModelEvent('revivedExpiry', false);
50-
5145
return $result;
5246
}
5347
}
@@ -82,29 +76,6 @@ public function hasExpired()
8276
return false;
8377
}
8478

85-
/**
86-
* Register a expiring model event with the dispatcher.
87-
*
88-
* @param \Closure|string $callback
89-
* @return void
90-
*/
91-
public static function expiring($callback)
92-
{
93-
static::registerModelEvent('expiring', $callback);
94-
}
95-
96-
/**
97-
* Register a expired model event with the dispatcher.
98-
*
99-
* @param \Closure|string $callback
100-
* @return void
101-
*/
102-
public static function expired($callback)
103-
{
104-
static::registerModelEvent('expired', $callback);
105-
}
106-
107-
10879
/**
10980
* Get the name of the "deleted at" column.
11081
*

src/ServiceProvider.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ class ServiceProvider extends Provider
1616
protected $defer = false;
1717

1818
/**
19-
* Bootstrap the application events.
19+
* Bootstrap the package.
2020
*
2121
* @return void
2222
*/

0 commit comments

Comments
 (0)