[server/migractions] drop mock_object

It doesn't seem to have ever been used.

authorJulien Cristau <julien.cristau@logilab.fr>
changesete4a807b49b58
branchdefault
phasepublic
hiddenno
parent revision#2d5f7780b568 [test] kill unused lgc.testlib imports
child revision#6a07c2dc3d85 [views] fix ProcessInformationView: SESSION_MANAGER can be None (closes #5753280)
files modified by this revision
server/migractions.py
# HG changeset patch
# User Julien Cristau <julien.cristau@logilab.fr>
# Date 1438867318 -7200
# Thu Aug 06 15:21:58 2015 +0200
# Node ID e4a807b49b5892862dee0afd559c6cc80e3126c6
# Parent 2d5f7780b5682ca498e3f3330450303e8b4d2c3c
[server/migractions] drop mock_object

It doesn't seem to have ever been used.

diff --git a/server/migractions.py b/server/migractions.py
@@ -58,13 +58,10 @@
1  from cubicweb.server.schema2sql import eschema2sql, rschema2sql, unique_index_name
2  from cubicweb.server.utils import manager_userpasswd
3  from cubicweb.server.sqlutils import sqlexec, SQL_PREFIX
4 
5 
6 -def mock_object(**params):
7 -    return type('Mock', (), params)()
8 -
9  class ClearGroupMap(hook.Hook):
10      __regid__ = 'cw.migration.clear_group_mapping'
11      __select__ = hook.Hook.__select__ & is_instance('CWGroup')
12      events = ('after_add_entity', 'after_update_entity',)
13      def __call__(self):