Skip to content

Commit

Permalink
Removed Temperature & TemperatureSensor
Browse files Browse the repository at this point in the history
  • Loading branch information
Pierre-Gilles committed Dec 2, 2015
1 parent be251be commit 610eb95
Show file tree
Hide file tree
Showing 6 changed files with 0 additions and 136 deletions.
20 changes: 0 additions & 20 deletions api/controllers/TemperatureController.js

This file was deleted.

20 changes: 0 additions & 20 deletions api/controllers/TemperatureSensorController.js

This file was deleted.

12 changes: 0 additions & 12 deletions api/models/Room.js
Original file line number Diff line number Diff line change
Expand Up @@ -55,11 +55,6 @@ module.exports = {
milightlamps:{
collection: 'MilightLamp',
via: 'room'
},

temperaturesensor:{
collection: 'TemperatureSensor',
via: 'room'
}

},
Expand Down Expand Up @@ -93,13 +88,6 @@ module.exports = {
checkifAllDestroyed();
});

TemperatureSensor.destroy({room : values[i].id}, function(err, temperaturesensor){
if(err) return next(err);

nbOk++;
checkifAllDestroyed();
});

MilightLamp.destroy({room: values[i].id}, function(err, milightlamp){
if(err) return next(err);

Expand Down
44 changes: 0 additions & 44 deletions api/models/Temperature.js

This file was deleted.

38 changes: 0 additions & 38 deletions api/models/TemperatureSensor.js

This file was deleted.

2 changes: 0 additions & 2 deletions config/policies.js
Original file line number Diff line number Diff line change
Expand Up @@ -67,8 +67,6 @@ module.exports.policies = {
Speak : ['isMachineMaster','checkToken', 'Human'],
State : ['isMachineMaster','checkToken', 'Human'],
StateType : ['isMachineMaster','checkToken', 'Human'],
Temperature : ['isMachineMaster','checkToken', 'Human'],
TemperatureSensor : ['isMachineMaster','checkToken', 'Human'],
Timer: ['isMachineMaster','checkToken', 'Human'],
Token : ['isMachineMaster','checkToken', 'Human'],
User : ['isMachineMaster','checkToken', 'Human'],
Expand Down

0 comments on commit 610eb95

Please sign in to comment.