Gokmen Gorgen avatar Gokmen Gorgen committed 8293818

remove unused lines.

Comments (0)

Files changed (1)

djangominimizer/settings.py

 from django.conf import settings
 
 MINIMIZER_DEBUG = getattr(settings, 'MINIMIZER_DEBUG', settings.DEBUG)
-CLOSURE_PATH = getattr(settings, 'MINIMIZER_CLOSURE_PATH', '')
 SCRIPTS = getattr(settings, 'MINIMIZER_SCRIPTS', [])
 STYLES = getattr(settings, 'MINIMIZER_STYLES', [])
-JQUERY_VERSION = getattr(settings, 'MINIMIZER_JQUERY_VERSION', '1.7')
-YUI_VERSION = getattr(settings, 'MINIMIZER_YUI_VERSION', '2.4.7')
+JQUERY_PATH = getattr(
+    settings, 'MINIMIZER_JQUERY_PATH', 'minimizer/js/jquert-1.7.min.js')
+YUI_PATH = getattr(settings, 'MINIMIZER_YUI_PATH', None)
 DESCRIPTION = getattr(settings, 'MINIMIZER_DESCRIPTION', '')
 AUTHOR = getattr(settings, 'MINIMIZER_AUTHOR', '')
 GOOGLE_ANALYTICS_CODE = getattr(
     settings, 'MINIMIZER_GOOGLE_ANALYTICS_CODE', '')
 CACHE_TIMEOUT = getattr(settings, 'MINIMIZER_CACHE_TIMEOUT', 1800)
-
-# Tool settings
 SCRIPTS_PATH = os.path.join(settings.STATIC_ROOT, 'scripts')
 STYLES_PATH = os.path.join(settings.STATIC_ROOT, 'styles')
-TOOLS_PATH = os.path.abspath(os.path.join(os.path.dirname(__file__), 'tools'))
-
-COMMAND_YUI = os.path.join(TOOLS_PATH, 'yuicompressor-%s.jar' % YUI_VERSION)
-COMMAND_COFFEE = os.path.join(
-    TOOLS_PATH, 'node_modules', 'coffee-script', 'bin', 'coffee')
-
-# Check CoffeeScript support
-COFFEE_SUPPORT = False
-
-# Scripts and styles list
-_scripts = getattr(settings, 'MINIMIZER_SCRIPTS', [])
-_styles = getattr(settings, 'MINIMIZER_STYLES', [])
-
-for static_file in _scripts:
-    if static_file.endswith('.coffee'):
-        COFFEE_SUPPORT = True
-        break
-
-
-# less settings
-COMMAND_LESS = os.path.join(TOOLS_PATH, 'node_modules', 'less', 'bin', 'lessc')
-LESS_JS_PATH = getattr(settings,
-                       'MINIMIZER_LESS_JS_PATH',
-                       'minimizer/js/less-1.2.1.min.js')
-LESS_SUPPORT = False
-
-for static_file in _styles:
-    if static_file.endswith('.less'):
-        LESS_SUPPORT = True
-        break
Tip: Filter by directory path e.g. /media app.js to search for public/media/app.js.
Tip: Use camelCasing e.g. ProjME to search for ProjectModifiedEvent.java.
Tip: Filter by extension type e.g. /repo .js to search for all .js files in the /repo directory.
Tip: Separate your search with spaces e.g. /ssh pom.xml to search for src/ssh/pom.xml.
Tip: Use ↑ and ↓ arrow keys to navigate and return to view the file.
Tip: You can also navigate files with Ctrl+j (next) and Ctrl+k (previous) and view the file with Ctrl+o.
Tip: You can also navigate files with Alt+j (next) and Alt+k (previous) and view the file with Alt+o.