diff --git a/code/model/DynamoDbSession.php b/code/model/DynamoDbSession.php index 946f296..ff344d9 100644 --- a/code/model/DynamoDbSession.php +++ b/code/model/DynamoDbSession.php @@ -100,11 +100,4 @@ public function register() return $this->handler->register(); } - /** - * Garbage collect the configured DynamoDB session table - */ - public function collect() - { - return $this->handler->garbageCollect(); - } } diff --git a/code/tasks/GarbageCollectSessionCronTask.php b/code/tasks/GarbageCollectSessionCronTask.php deleted file mode 100644 index afe47d3..0000000 --- a/code/tasks/GarbageCollectSessionCronTask.php +++ /dev/null @@ -1,48 +0,0 @@ -schedule; - } - - public function output($message) - { - if (PHP_SAPI === 'cli') { - echo $message.PHP_EOL; - } else { - echo $message.'
'.PHP_EOL; - } - } - - public function process() - { - $dynamoSession = DynamoDbSession::get(); - if ($dynamoSession) { - $dynamoSession->collect(); - $this->output('DynamoDB session garbage collection finished'); - } else { - $this->output('DynamoDB session not enabled. Skipping'); - } - } -}