From 00c11da60aed649448ddebc0007e2bb88a0201e8 Mon Sep 17 00:00:00 2001 From: Bruno Wagner Date: Thu, 4 Jun 2015 19:21:24 -0300 Subject: Config is not used anymore --- service/pixelated/config/config.py | 33 ----------------------------- service/pixelated/config/initialize_leap.py | 1 - service/pixelated/maintenance.py | 2 -- 3 files changed, 36 deletions(-) delete mode 100644 service/pixelated/config/config.py (limited to 'service/pixelated') diff --git a/service/pixelated/config/config.py b/service/pixelated/config/config.py deleted file mode 100644 index a346344c..00000000 --- a/service/pixelated/config/config.py +++ /dev/null @@ -1,33 +0,0 @@ -# -# Copyright (c) 2014 ThoughtWorks, Inc. -# -# Pixelated is free software: you can redistribute it and/or modify -# it under the terms of the GNU Affero General Public License as published by -# the Free Software Foundation, either version 3 of the License, or -# (at your option) any later version. -# -# Pixelated is distributed in the hope that it will be useful, -# but WITHOUT ANY WARRANTY; without even the implied warranty of -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -# GNU Affero General Public License for more details. -# -# You should have received a copy of the GNU Affero General Public License -# along with Pixelated. If not, see . - - -class Config(dict): - - def __getattr__(self, name): - if name in self: - return self[name] - else: - raise AttributeError("No such attribute: " + name) - - def __setattr__(self, name, value): - self[name] = value - - def __delattr__(self, name): - if name in self: - del self[name] - else: - raise AttributeError("No such attribute: " + name) diff --git a/service/pixelated/config/initialize_leap.py b/service/pixelated/config/initialize_leap.py index 3ddc3a57..7b600bf8 100644 --- a/service/pixelated/config/initialize_leap.py +++ b/service/pixelated/config/initialize_leap.py @@ -1,4 +1,3 @@ -from pixelated.config.config import Config from pixelated.config import credentials from leap.common.events import server as events_server import pixelated.bitmask_libraries.certs as certs diff --git a/service/pixelated/maintenance.py b/service/pixelated/maintenance.py index dfbd1931..c3e021b4 100644 --- a/service/pixelated/maintenance.py +++ b/service/pixelated/maintenance.py @@ -15,7 +15,6 @@ # along with Pixelated. If not, see . from mailbox import Maildir -from pixelated.config.config import Config from pixelated.config.args import parse_maintenance_args from pixelated.config.initialize_leap import initialize_leap from pixelated.config.logging_setup import init_logging @@ -35,7 +34,6 @@ import pixelated.support.ext_requests_urllib3 def initialize(): args = parse_maintenance_args() - app = Config() init_logging(debug=args.debug) -- cgit v1.2.3