[Kst] kdeextragear-2/kst/kst/extensions/js

George Staikos staikos at kde.org
Tue Apr 12 16:33:44 CEST 2005


CVS commit by staikos: 

that's not supposed to be there


  M +0 -26     bind_label.cpp   1.3
  M +0 -1      bind_label.h   1.3


--- kdeextragear-2/kst/kst/extensions/js/bind_label.cpp  #1.2:1.3
@@ -70,5 +70,4 @@ struct LabelProperties {
 
 static LabelBindings labelBindings[] = {
-  { "doIt", &KstBindLabel::doIt },
   { 0L, 0L }
 };
@@ -250,28 +249,3 @@ KJS::Value KstBindLabel::scalarReplaceme
 
 
-KJS::Value KstBindLabel::doIt(KJS::ExecState *exec, const KJS::List& args) {
-  if (!_d) {
-    KJS::Object eobj = KJS::Error::create(exec, KJS::GeneralError);
-    exec->setException(eobj);
-    return KJS::Undefined();
-  }
-
-  if (args.size() != 1) {
-    KJS::Object eobj = KJS::Error::create(exec, KJS::SyntaxError, "Requires exactly one argument.");
-    exec->setException(eobj);
-    return KJS::Undefined();
-  }
-
-  if (args[0].type() != KJS::NumberType) {
-    KJS::Object eobj = KJS::Error::create(exec, KJS::TypeError);
-    exec->setException(eobj);
-    return KJS::Undefined();
-  }
-
-  double i = args[0].toNumber(exec);
-
-  KstWriteLocker wl(_d);
-  return KJS::Number(0); //_d->doIt(i));
-}
-
 // vim: ts=2 sw=2 et

--- kdeextragear-2/kst/kst/extensions/js/bind_label.h  #1.2:1.3
@@ -42,5 +42,4 @@ class KstBindLabel : public KstBinding {
 
     // member functions
-    KJS::Value doIt(KJS::ExecState *exec, const KJS::List& args);
 
     // properties




More information about the Kst mailing list