From 52a030411ac86d2aca1b28985f92f1852874abd5 Mon Sep 17 00:00:00 2001 From: monsta Date: Fri, 28 Mar 2014 14:46:28 +0400 Subject: [PATCH] Removed unused imports and some other stuff --- usr/lib/linuxmint/mintMenu/mintMenu.py | 6 +----- usr/lib/linuxmint/mintMenu/plugins/applications.py | 3 --- usr/lib/linuxmint/mintMenu/plugins/recent.py | 4 ---- 3 files changed, 1 insertion(+), 12 deletions(-) diff --git a/usr/lib/linuxmint/mintMenu/mintMenu.py b/usr/lib/linuxmint/mintMenu/mintMenu.py index 0a2d1a7..f9358b1 100755 --- a/usr/lib/linuxmint/mintMenu/mintMenu.py +++ b/usr/lib/linuxmint/mintMenu/mintMenu.py @@ -9,7 +9,6 @@ from gi.repository import Gio try: import sys - from gi.repository import Pango import os import commands import gettext @@ -18,7 +17,6 @@ try: import gc import ctypes from ctypes import * - import capi import xdg.Config import keybinding import pointerMonitor @@ -28,14 +26,12 @@ except Exception, e: GObject.threads_init() -gtk = CDLL("libgtk-x11-2.0.so.0") gdk = CDLL("libgdk-x11-2.0.so.0") # Rename the process architecture = commands.getoutput("uname -a") if (architecture.find("x86_64") >= 0): - import ctypes - libc = ctypes.CDLL('libc.so.6') + libc = CDLL('libc.so.6') libc.prctl(15, 'mintmenu', 0, 0, 0) else: import dl diff --git a/usr/lib/linuxmint/mintMenu/plugins/applications.py b/usr/lib/linuxmint/mintMenu/plugins/applications.py index 58981fe..31edc29 100755 --- a/usr/lib/linuxmint/mintMenu/plugins/applications.py +++ b/usr/lib/linuxmint/mintMenu/plugins/applications.py @@ -6,8 +6,6 @@ gi.require_version("Gtk", "2.0") from gi.repository import Gtk, Pango, Gdk, Gio, GLib import os -#import mateconf -import fnmatch import time import string import gettext @@ -16,7 +14,6 @@ import commands import subprocess import filecmp import ctypes -import capi from ctypes import * from easybuttons import * from execute import Execute diff --git a/usr/lib/linuxmint/mintMenu/plugins/recent.py b/usr/lib/linuxmint/mintMenu/plugins/recent.py index a1eefa0..763e654 100755 --- a/usr/lib/linuxmint/mintMenu/plugins/recent.py +++ b/usr/lib/linuxmint/mintMenu/plugins/recent.py @@ -2,11 +2,7 @@ import gi gi.require_version("Gtk", "2.0") from gi.repository import Gtk, Pango -import sys import os -import gobject -import datetime -import fcntl from easygsettings import EasyGSettings from execute import Execute from easyfiles import *