Remove dead or useless code
This commit is contained in:
parent
9935e038fc
commit
ac33ceb579
41 changed files with 15 additions and 80 deletions
|
|
@ -14,7 +14,6 @@
|
|||
# You should have received a copy of the GNU Affero General Public License
|
||||
# along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
|
||||
from nemubot.hooks.abstract import Abstract
|
||||
from nemubot.hooks.message import Message
|
||||
|
||||
last_registered = []
|
||||
|
|
@ -29,12 +28,12 @@ def hook(store, *args, **kargs):
|
|||
|
||||
|
||||
def reload():
|
||||
global Abstract, Message
|
||||
global Message
|
||||
import imp
|
||||
|
||||
import nemubot.hooks.abstract
|
||||
imp.reload(nemubot.hooks.abstract)
|
||||
Abstract = nemubot.hooks.abstract.Abstract
|
||||
|
||||
import nemubot.hooks.message
|
||||
imp.reload(nemubot.hooks.message)
|
||||
Message = nemubot.hooks.message.Message
|
||||
|
|
|
|||
|
|
@ -1,5 +1,3 @@
|
|||
# -*- coding: utf-8 -*-
|
||||
|
||||
# Nemubot is a smart and modulable IM bot.
|
||||
# Copyright (C) 2012-2015 Mercier Pierre-Olivier
|
||||
#
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue