Cleanup dead code and removing unused packages
Change-Id: Id084bd2a71da5df8393b01ad09188826d99d48fd
diff --git a/xos/__init__.py b/xos/__init__.py
deleted file mode 100644
index e69de29..0000000
--- a/xos/__init__.py
+++ /dev/null
diff --git a/xos/core/models/plcorebase.py b/xos/core/models/plcorebase.py
index 5d5ae54..dd86bac 100644
--- a/xos/core/models/plcorebase.py
+++ b/xos/core/models/plcorebase.py
@@ -1,19 +1,14 @@
import datetime
import json
-import os
import pytz
import inspect
import sys
import threading
-from django import db
from django.db import models
from django.db import transaction
from django.forms.models import model_to_dict
-from django.core.urlresolvers import reverse
-from django.forms.models import model_to_dict
from django.utils import timezone
from django.core.exceptions import PermissionDenied
-from model_autodeletion import ephemeral_models
from cgi import escape as html_escape
from journal import journal_object
from django.db.models.deletion import Collector
@@ -427,10 +422,6 @@
# filtering of visible objects by user.
return cls.objects.all()
- @classmethod
- def is_ephemeral(cls):
- return cls in ephemeral_models
-
def tologdict(self):
try:
d = {'model_name':self.__class__.__name__, 'pk': self.pk}
diff --git a/xos/model_autodeletion.py b/xos/model_autodeletion.py
deleted file mode 100644
index 6eaf63c..0000000
--- a/xos/model_autodeletion.py
+++ /dev/null
@@ -1 +0,0 @@
-ephemeral_models = ['ReservedResource','Instance','Image','Network','Tag','SitePrivilege','SliceMembership','SliceTag','Reservation','Slice']