From cd664360afa27bca4336673e9baf9b4417bf35da Mon Sep 17 00:00:00 2001
From: Rudolf Copi Eckelberg <rce16@inf.ufpr.br>
Date: Wed, 5 Oct 2016 09:30:53 -0300
Subject: [PATCH] Removed location models

---
 src/libs/models/locations.js  | 34 ----------------------------------
 src/libs/models/simulation.js |  2 --
 2 files changed, 36 deletions(-)
 delete mode 100644 src/libs/models/locations.js

diff --git a/src/libs/models/locations.js b/src/libs/models/locations.js
deleted file mode 100644
index e169e53b..00000000
--- 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 fcfc26d3..b2bfe828 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
-- 
GitLab