From 53325ff3cdfe6c7b0efae834a5f1f6d5b88f2f63 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ond=C5=99ej=20Lyson=C4=9Bk?= Date: Tue, 14 Feb 2017 15:46:08 +0100 Subject: [PATCH] Remove tuned.gtk.manager MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Remove the tuned.gtk.manager module. It doesn't seem to have been used anywhere _ever_, it's broken (the only class it contains calls a constructor with incorrect number of parameters) and it seems to be completely useless anyway. Signed-off-by: Ondřej Lysoněk --- tuned/gtk/manager.py | 43 ------------------------------------------- 1 file changed, 43 deletions(-) delete mode 100644 tuned/gtk/manager.py diff --git a/tuned/gtk/manager.py b/tuned/gtk/manager.py deleted file mode 100644 index 7ae86da..0000000 --- a/tuned/gtk/manager.py +++ /dev/null @@ -1,43 +0,0 @@ -#!/usr/bin/python -# -*- coding: utf-8 -*- - -# Copyright (C) 2008-2014 Red Hat, Inc. -# Authors: Marek Staňa, Jaroslav Škarvada -# -# This program is free software; you can redistribute it and/or -# modify it under the terms of the GNU General Public License -# as published by the Free Software Foundation; either version 2 -# of the License, or (at your option) any later version. -# -# This program 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 General Public License for more details. -# -# You should have received a copy of the GNU General Public License -# along with this program; if not, write to the Free Software -# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. -# - -import os -import sys - -import tuned.plugins.repository - -from tuned.exceptions import TunedException - - -class Manager(object): - - def __init__(self): - self.repository = tuned.plugins.repository.Repository() - - -if __name__ == '__main__': - - if os.geteuid() != 0: - os.error('Superuser permissions are required to run the daemon.' - ) - sys.exit(1) - - man = Manager()