changeset 555:a859299fb54a

Removed unused parameter in call function for JavaScript decoders. git-svn-id: svn://svn.code.sf.net/p/universalindent/code/trunk@795 59b1889a-e5ac-428c-b0c7-476e01d41282
author thomas_-_s <thomas_-_s@59b1889a-e5ac-428c-b0c7-476e01d41282>
date Thu, 02 Oct 2008 19:07:16 +0000
parents 866129da93cb
children 6255a3c1c66c
files src/indenthandler.cpp src/indenthandler.h
diffstat 2 files changed, 3 insertions(+), 3 deletions(-) [+]
line wrap: on
line diff
--- a/src/indenthandler.cpp	Thu Oct 02 14:16:28 2008 +0000
+++ b/src/indenthandler.cpp	Thu Oct 02 19:07:16 2008 +0000
@@ -336,7 +336,7 @@
  */
 QString IndentHandler::callIndenter(QString sourceCode, QString inputFileExtension) {
     if ( indenterExecutableSuffix == ".js" ) {
-        return callJavaScriptIndenter(sourceCode, inputFileExtension);
+        return callJavaScriptIndenter(sourceCode);
     } 
     else {
         return callExecutableIndenter(sourceCode, inputFileExtension);
@@ -350,7 +350,7 @@
     The \a inputFileExtension has to be given as parameter so the called indenter 
     can identify the programming language if needed.
 */
-QString IndentHandler::callJavaScriptIndenter(QString sourceCode, QString inputFileExtension) {
+QString IndentHandler::callJavaScriptIndenter(QString sourceCode) {
     QScriptEngine engine;
 
     QScriptValue unformattedCode(&engine, sourceCode);
--- a/src/indenthandler.h	Thu Oct 02 14:16:28 2008 +0000
+++ b/src/indenthandler.h	Thu Oct 02 19:07:16 2008 +0000
@@ -97,7 +97,7 @@
 
 private:
     QString callExecutableIndenter(QString sourceCode, QString inputFileExtension);
-    QString callJavaScriptIndenter(QString sourceCode, QString inputFileExtension);
+    QString callJavaScriptIndenter(QString sourceCode);
     void writeConfigFile(QString filePathName, QString parameterString);
     void readIndentIniFile(QString iniFilePath);
     bool createIndenterCallString();