From 714f0855d29dfbbc1bc722d74f44250f42598ffe Mon Sep 17 00:00:00 2001 From: Olga Kopylova Date: Wed, 27 Nov 2013 13:45:32 +0200 Subject: [PATCH] Remove unused import and CinderNode sqlalchemy model Class CinderNode is never used, attribute_mapped_collection from sqlalchemy.orm.collections imported but unused. Change-Id: I5d72aaf0922eab001f2db5b884b65632481df937 --- cinder/db/sqlalchemy/models.py | 9 --------- 1 file changed, 9 deletions(-) diff --git a/cinder/db/sqlalchemy/models.py b/cinder/db/sqlalchemy/models.py index f4dd4249e..fa9cdb223 100644 --- a/cinder/db/sqlalchemy/models.py +++ b/cinder/db/sqlalchemy/models.py @@ -26,7 +26,6 @@ from sqlalchemy import Column, Integer, String, Text, schema from sqlalchemy.ext.declarative import declarative_base from sqlalchemy import ForeignKey, DateTime, Boolean from sqlalchemy.orm import relationship, backref -from sqlalchemy.orm.collections import attribute_mapped_collection from oslo.config import cfg @@ -70,14 +69,6 @@ class Service(BASE, CinderBase): availability_zone = Column(String(255), default='cinder') -class CinderNode(BASE, CinderBase): - """Represents a running cinder service on a host.""" - - __tablename__ = 'cinder_nodes' - id = Column(Integer, primary_key=True) - service_id = Column(Integer, ForeignKey('services.id'), nullable=True) - - class Volume(BASE, CinderBase): """Represents a block storage device that can be attached to a vm.""" __tablename__ = 'volumes' -- 2.45.2