[hipl-commit] [tiny] Rev 3742: Removed unused code from process_modules.py

  • From: Tim Just <tim.just@xxxxxxxxxxxxxx>
  • To: hipl-commit@xxxxxxxxxxxxx
  • Date: Tue, 30 Mar 2010 16:00:30 +0300

Committer: Tim Just <tim.just@xxxxxxxxxxxxxx>
Date: 30/03/2010 at 16:00:30
Revision: 3742
Revision-id: tim.just@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
Branch nick: tiny

Log:
  Removed unused code from process_modules.py

Modified:
  M  process_modules.py

=== modified file 'process_modules.py'
--- process_modules.py  2010-03-30 08:44:33 +0000
+++ process_modules.py  2010-03-30 13:00:14 +0000
@@ -247,20 +247,14 @@
 # Creates a file at file_path and includes a Makefile.am from all given modules
 # sub directories.
 def create_makefile_modules(srcdir,
-                            file_path,
                             module_info,
                             disabled_modules):
 
+    file_path = 'Makefile.modules'
     makefile_modules = open(file_path, 'w')
 
-    enabled_modules = module_info.keys()
-    if not disabled_modules:
-        all_modules = enabled_modules
-    else:
-        all_modules = enabled_modules + disabled_modules
-
-    # Include compile statements from module Makefile.am's
-    for current in enabled_modules:
+    # Include Makefile.am's from modules
+    for current in module_info.keys():
         path = os.path.join(srcdir, MODULES_DIR, current, 'Makefile.am')
         makefile_modules.write('include ' + path + '\n')
 
@@ -305,7 +299,6 @@
                         required_modules)
 
     create_makefile_modules(srcdir,
-                            'Makefile.modules',
                             module_info,
                             disabled_modules)

Other related posts:

  • » [hipl-commit] [tiny] Rev 3742: Removed unused code from process_modules.py - Tim Just