diff --git a/trove/db/__init__.py b/trove/db/__init__.py index fc25eceeac..60bb4473c7 100644 --- a/trove/db/__init__.py +++ b/trove/db/__init__.py @@ -13,8 +13,6 @@ # License for the specific language governing permissions and limitations # under the License. -import optparse - from trove.common import cfg from trove.common import utils @@ -88,26 +86,3 @@ class Queryable(object): model, query_func=getattr(get_db_api(), item), **conditions) db_query = Queryable() - - -def add_options(parser): - """Adds any configuration options that the db layer might have. - - :param parser: An optparse.OptionParser object - :retval None - - """ - help_text = ("The following configuration options are specific to the " - "Trove database.") - - group = optparse.OptionGroup( - parser, - "Registry Database Options", - help_text) - group.add_option( - '--sql-connection', - metavar="CONNECTION", - default=None, - help="A valid SQLAlchemy connection string for the " - "registry database. Default: %(default)s.") - parser.add_option_group(group)