smalltalk
/
osmo-st-all
Archived
1
0
Fork 0

Removed #expired accessor from Iliad.Session

This commit is contained in:
Nicolas Petton 2009-06-25 01:13:19 +00:00
parent cf8e7e6c18
commit 32578f7bde
1 changed files with 2 additions and 6 deletions

View File

@ -49,6 +49,7 @@ IliadObject subclass: Session [
initialize [ initialize [
<category: 'initialize-release'> <category: 'initialize-release'>
super initialize. super initialize.
expired := false.
self setCreatedTimestamp; self setCreatedTimestamp;
setRandomId setRandomId
] ]
@ -343,7 +344,7 @@ IliadObject subclass: Session [
(DateTime now asSeconds - self modifiedTimestamp asSeconds (DateTime now asSeconds - self modifiedTimestamp asSeconds
> self expirySeconds) ifTrue: [ > self expirySeconds) ifTrue: [
self expire]. self expire].
^self expired ^expired
] ]
isNew [ isNew [
@ -379,11 +380,6 @@ IliadObject subclass: Session [
expired := true expired := true
] ]
expired [
<category: 'private'>
^expired ifNil: [expired := false]
]
setRandomId [ setRandomId [
<category: 'private'> <category: 'private'>
^self id: Id new ^self id: Id new