[Pharo] Personal fitness tracker web app.
Remove rest prescription.
This might be re-added later on.
Changed files
src/MyFitnessTracker-Core/MFTPrescription.class.st
@@ -1,21 +0,0 @@
1
Removed:
"
2
Removed:
I am the abstract superclass for activities that can be prescribed.
3
Removed:
"
4
Removed:
Class {
5
Removed:
#name : 'MFTPrescription',
6
Removed:
#superclass : 'MFTObject',
7
Removed:
#category : 'MyFitnessTracker-Core',
8
Removed:
#package : 'MyFitnessTracker-Core'
9
Removed:
}
10
Removed:
11
Removed:
{ #category : 'testing' }
12
Removed:
MFTPrescription >> isRest [
13
Removed:
14
Removed:
^ false
15
Removed:
]
16
Removed:
17
Removed:
{ #category : 'testing' }
18
Removed:
MFTPrescription >> isWorkout [
19
Removed:
20
Removed:
^ false
21
Removed:
]
src/MyFitnessTracker-Core/MFTRestPrescription.class.st
@@ -1,65 +0,0 @@
1
Removed:
"
2
Removed:
I represent a period of rest.
3
Removed:
"
4
Removed:
Class {
5
Removed:
#name : 'MFTRestPrescription',
6
Removed:
#superclass : 'MFTPrescription',
7
Removed:
#instVars : [
8
Removed:
'routine',
9
Removed:
'duration'
10
Removed:
],
11
Removed:
#category : 'MyFitnessTracker-Core-Prescription',
12
Removed:
#package : 'MyFitnessTracker-Core',
13
Removed:
#tag : 'Prescription'
14
Removed:
}
15
Removed:
16
Removed:
{ #category : 'as yet unclassified' }
17
Removed:
MFTRestPrescription class >> withDuration: aDuration [
18
Removed:
19
Removed:
^ self new
20
Removed:
duration: aDuration;
21
Removed:
yourself
22
Removed:
]
23
Removed:
24
Removed:
{ #category : 'initialization' }
25
Removed:
MFTRestPrescription >> canonicalName [
26
Removed:
27
Removed:
^ 'rest ' , duration asHours asString , ' hours'
28
Removed:
]
29
Removed:
30
Removed:
{ #category : 'accessing' }
31
Removed:
MFTRestPrescription >> duration [
32
Removed:
33
Removed:
^ duration
34
Removed:
]
35
Removed:
36
Removed:
{ #category : 'accessing' }
37
Removed:
MFTRestPrescription >> duration: aDuration [
38
Removed:
39
Removed:
duration := aDuration
40
Removed:
]
41
Removed:
42
Removed:
{ #category : 'as yet unclassified' }
43
Removed:
MFTRestPrescription >> initialize [
44
Removed:
45
Removed:
super initialize.
46
Removed:
duration := 1 day
47
Removed:
]
48
Removed:
49
Removed:
{ #category : 'testing' }
50
Removed:
MFTRestPrescription >> isRest [
51
Removed:
52
Removed:
^ true
53
Removed:
]
54
Removed:
55
Removed:
{ #category : 'accessing' }
56
Removed:
MFTRestPrescription >> routine [
57
Removed:
58
Removed:
^ routine
59
Removed:
]
60
Removed:
61
Removed:
{ #category : 'accessing' }
62
Removed:
MFTRestPrescription >> routine: aMFTRoutine [
63
Removed:
64
Removed:
routine := aMFTRoutine
65
Removed:
]