summaryrefslogtreecommitdiffstats
path: root/src/lib/Server
diff options
context:
space:
mode:
authorNarayan Desai <desai@mcs.anl.gov>2008-03-22 21:07:30 +0000
committerNarayan Desai <desai@mcs.anl.gov>2008-03-22 21:07:30 +0000
commit115b22179aebe74e4d4114fff9d75829f296412c (patch)
tree772098ddc14a6aca26dd8d55393f1f3c7eed6e89 /src/lib/Server
parent444c9d1a25b636e53d37ec897b183244b850b89a (diff)
downloadbcfg2-115b22179aebe74e4d4114fff9d75829f296412c.tar.gz
bcfg2-115b22179aebe74e4d4114fff9d75829f296412c.tar.bz2
bcfg2-115b22179aebe74e4d4114fff9d75829f296412c.zip
Remove dead code
git-svn-id: https://svn.mcs.anl.gov/repos/bcfg/trunk/bcfg2@4443 ce84e21b-d406-0410-9b95-82705330c041
Diffstat (limited to 'src/lib/Server')
-rw-r--r--src/lib/Server/Core.py17
1 files changed, 0 insertions, 17 deletions
diff --git a/src/lib/Server/Core.py b/src/lib/Server/Core.py
index f673f37e4..07d210815 100644
--- a/src/lib/Server/Core.py
+++ b/src/lib/Server/Core.py
@@ -50,7 +50,6 @@ class FamFam(object):
mode = os.stat(path)[stat.ST_MODE]
if stat.S_ISDIR(mode):
handle = self.fm.monitorDirectory(path, None)
- #print "adding callback for directory %s to %s, handle :%s:" % ( path, obj, handle.requestID())
else:
handle = self.fm.monitorFile(path, None)
self.handles[handle.requestID()] = handle
@@ -58,21 +57,6 @@ class FamFam(object):
self.users[handle.requestID()] = obj
return handle.requestID()
- def HandleEvent(self):
- '''Route a fam event to the proper callback'''
- event = self.fm.nextEvent()
- reqid = event.requestID
- if reqid not in self.users:
- return
- if self.debug:
- logger.info("Dispatching event %s %s to obj %s handle" % \
- (event.code2str(), event.filename,
- self.users[reqid]))
- try:
- self.users[reqid].HandleEvent(event)
- except:
- logger.error("handling event for file %s" % (event.filename), exc_info=1)
-
def Service(self):
'''Handle all fam work'''
count = 0
@@ -150,7 +134,6 @@ class GaminFam(object):
mode = os.stat(path)[stat.ST_MODE]
if stat.S_ISDIR(mode):
self.mon.watch_directory(path, self.queue, handle)
- #print "adding callback for directory %s to %s, handle :%s:" % ( path, obj, handle.requestID())
else:
self.mon.watch_file(path, self.queue, handle)
self.handles[handle] = obj