diff --git a/src/libs/models/locations.js b/src/libs/models/locations.js deleted file mode 100644 index e169e53b6fd55a6cd0d347e47de8291878248ac0..0000000000000000000000000000000000000000 --- a/src/libs/models/locations.js +++ /dev/null @@ -1,34 +0,0 @@ -/* These classes are defined to allow checking of location type with the -instanceof operator. */ - -class Location {} - -// Location types -class City extends Location { - constructor(id) { - super(); - this.id = id; - } -} - -class State extends Location { - constructor(id) { - super(); - this.id = id; - } -} - -class Region extends Location { - constructor(id) { - super(); - this.id = id; - } -} - -const locations = { - location: Location, - city: City, - state: State, - region: Region }; - -module.exports = locations; diff --git a/src/libs/models/simulation.js b/src/libs/models/simulation.js index fcfc26d3e942b1625295e1e5f4192341de6f13a9..b2bfe82807a22fca8dfacf46d50ad44567532f74 100644 --- a/src/libs/models/simulation.js +++ b/src/libs/models/simulation.js @@ -4,8 +4,6 @@ const libs = `${process.cwd()}/libs`; const config = require(`${libs}/config`); const log = require(`${libs}/log`)(module); -const locations = require(`${libs}/models/locations`); - const Schema = mongoose.Schema; // Should define this somewhere else