Skip to content

Commit fa725ff

Browse files
committed
Remove unused method, I depend on bake/build/lib/python3.8/site-packages/ns3/__init__.py
Signed-off-by: Parth Pratim Chatterjee <[email protected]>
1 parent 6ebb5b6 commit fa725ff

File tree

1 file changed

+0
-17
lines changed

1 file changed

+0
-17
lines changed

bindings/python/wscript

Lines changed: 0 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -475,23 +475,6 @@ def get_modules_and_headers(bld):
475475

476476

477477

478-
class gen_ns3_compat_pymod_task(Task.Task):
479-
"""Generates a 'ns3.py' compatibility module."""
480-
before = ['cxxprogram', 'cxxshlib', 'cxxstlib']
481-
color = 'BLUE'
482-
483-
def run(self):
484-
assert len(self.outputs) == 1
485-
outfile = open(self.outputs[0].abspath(), "w")
486-
print("import warnings", file=outfile)
487-
print('warnings.warn("the ns3 module is a compatibility layer '\
488-
'and should not be used in newly written code", DeprecationWarning, stacklevel=2)', file=outfile)
489-
print(file=outfile)
490-
for module in ['antenna', 'aodv', 'applications', 'bridge', 'buildings', 'config-store', 'core', 'csma', 'csma-layout', 'dsdv', 'dsr', 'energy', 'fd-net-device', 'flow-monitor', 'internet', 'internet-apps', 'lr-wpan', 'lte', 'mesh', 'mobility', 'netanim', 'network', 'nix-vector-routing', 'olsr', 'point-to-point', 'point-to-point-layout', 'propagation', 'sixlowpan', 'spectrum', 'stats', 'tap-bridge', 'topology-read', 'traffic-control', 'uan', 'virtual-net-device', 'wave', 'wifi', 'wimax','dce']:
491-
print("from ns.%s import *" % (module.replace('-', '_')), file=outfile)
492-
outfile.close()
493-
return 0
494-
495478
def removedup(seq):
496479
seen = set()
497480
seen_add = seen.add

0 commit comments

Comments
 (0)