diff options
author | Duda Dornelles <ddornell@thoughtworks.com> | 2014-10-15 09:42:08 +0200 |
---|---|---|
committer | Duda Dornelles <ddornell@thoughtworks.com> | 2014-10-15 09:42:08 +0200 |
commit | 89d26f3cd389f41b83d27ea225944a0ff8bc2e95 (patch) | |
tree | 31275a0e7c350fd2b9acc2d1210d972bb9a0d3c8 /service/pixelated/adapter/tag_service.py | |
parent | 6d08b8e65d2c1679d4b489ac196116847f91b3a7 (diff) |
Getting rid of singletons and optimizing imports
Diffstat (limited to 'service/pixelated/adapter/tag_service.py')
-rw-r--r-- | service/pixelated/adapter/tag_service.py | 7 |
1 files changed, 0 insertions, 7 deletions
diff --git a/service/pixelated/adapter/tag_service.py b/service/pixelated/adapter/tag_service.py index fa70231e..54b88622 100644 --- a/service/pixelated/adapter/tag_service.py +++ b/service/pixelated/adapter/tag_service.py @@ -14,7 +14,6 @@ # You should have received a copy of the GNU Affero General Public License # along with Pixelated. If not, see <http://www.gnu.org/licenses/>. from pixelated.adapter.tag import Tag -from pixelated.adapter.tag_index import TagIndex class TagService: @@ -25,9 +24,3 @@ class TagService: @classmethod def extract_reserved(cls, tags): return {tag.name for tag in cls.SPECIAL_TAGS if tag.name in tags} - - @classmethod - def get_instance(cls): - if not cls.instance: - cls.instance = TagService() - return cls.instance |