Index: /branches/v2.9_Lars/mediafolder/c/m3ufolder/m3ufolderoverriddenwpmethods.cpp
===================================================================
--- /branches/v2.9_Lars/mediafolder/c/m3ufolder/m3ufolderoverriddenwpmethods.cpp	(revision 121)
+++ /branches/v2.9_Lars/mediafolder/c/m3ufolder/m3ufolderoverriddenwpmethods.cpp	(revision 122)
@@ -57,131 +57,4 @@
 
 //void HlpWriteToTrapLog(const char* chrFormat, ...);
-
-#if 0
-void _Optlink rexxThreadFunc (void *arg)
-{
-  HAB  hab;
-  HMQ  hmq;
-  QMSG qmsg;
-  CWM3UFolder *thisPtr;
-  HWND hwnd;
-#if 0
-  char chrFileName[CCHMAXPATH];
-  char chrFolderName[CCHMAXPATH];
-  char chrRexxScript[CCHMAXPATH];
-#endif
-  char *chrFileName;
-  char *chrFolderName;
-  char *chrRexxScript;
-  ULONG ulSize;
-
-  thisPtr=(CWM3UFolder*)arg;
-  if(!somIsObj(thisPtr))
-    return;
-
-  if(!somIsObj(thisPtr->wpObjM3UFile))
-    return;
-
-  chrFileName=thisPtr->wpAllocMem( CCHMAXPATH*3+10 , &ulSize);
-  if(!chrFileName)
-    return;
-
-  chrFolderName=chrFileName+CCHMAXPATH+1;
-  chrRexxScript=chrFolderName+CCHMAXPATH+1;
-
-  ulSize=CCHMAXPATH;
-  if(!((WPFileSystem*)thisPtr->wpObjM3UFile)->wpQueryRealName(chrFileName, &ulSize, TRUE))
-    return;
-
-  ulSize=CCHMAXPATH;
-  if(!thisPtr->wpQueryRealName(chrFolderName, &ulSize, TRUE))
-    return;
-
-  hab=WinInitialize(0);
-  if(hab) {
-    hmq=WinCreateMsgQueue(hab,0);
-    if(hmq) {
-      RXSTRING arg[2];                    /* argument string for REXX  */
-      RXSTRING rexxretval;                /* return value from REXX    */
-      APIRET   rc;                        /* return code from REXX     */
-      SHORT    rexxrc = 0;                /* return code from function */
-
-
-      sprintf(chrRexxScript,"%s%s",  chrInstallDir,RX_INSERT_PLAYLISTTRACKS);
-      //HlpWriteToTrapLog("chrRexxScript: %s\n", chrRexxScript);
-      /* By setting the strlength of the output RXSTRING to zero, we   */
-      /* force the interpreter to allocate memory and return it to us. */
-      /* We could provide a buffer for the interpreter to use instead. */
-      rexxretval.strlength = 0L;          /* initialize return to empty*/
-
-      MAKERXSTRING(arg[0], chrFileName, strlen(chrFileName));/* create input argument     */
-      MAKERXSTRING(arg[1], chrFolderName, strlen(chrFolderName));/* create input argument     */
-
-      TRY_LOUD(RX_START) {
-        /* Here we call the interpreter.  We don't really need to use    */
-        /* all the casts in this call; they just help illustrate         */
-        /* the data types used.                                          */
-        rc=RexxStart((LONG)       2,             /* number of arguments   */
-                     (PRXSTRING)  &arg,          /* array of arguments    */
-                     (PSZ)        chrRexxScript,/* name of REXX file     */
-                     //   (PSZ)        "H:\\cwmm\\mediafolder\\beep.cmd",/* name of REXX file     */
-                     (PRXSTRING)  0,             /* No INSTORE used       */
-                     (PSZ)        "CWRXX",         /* Command env. name     */
-                     (LONG)       RXSUBROUTINE,  /* Code for how invoked  */
-                     (PRXSYSEXIT) 0,             /* No EXITs on this call */
-                     (PSHORT)     &rexxrc,       /* Rexx program output   */
-                     (PRXSTRING)  &rexxretval ); /* Rexx program output   */
-
-        if(rc) {
-          sprintf(chrFileName,"Error in the Rexx skript %s\n\n Get more information with 'help REX%04d'.\n",
-                  "", rc*-1);
-          WinMessageBox(HWND_DESKTOP, HWND_DESKTOP, chrFileName, "", 1234, MB_OK|MB_MOVEABLE|MB_ERROR);
-        }
-        DosFreeMem(rexxretval.strptr);          /* Release storage given to us by REXX.  */
-      }
-      CATCH(RX_START)
-        {}END_CATCH;
-
-        WinDestroyMsgQueue(hmq);
-    }
-    WinTerminate(hab);
-  }
-  thisPtr->fContentsChanged=FALSE;
-  thisPtr->wpFreeMem((PBYTE)chrFileName);
-}
-
-BOOL CWM3UFolder::wpSetup(PSZ pSetupString)
-{
-  /**************************************************
-   *                                                *
-   *                                                *
-   **************************************************/
-  char buffer[25];
-  ULONG bufferSize;
-
-  /* Set object window HWND */
-  bufferSize=sizeof(buffer);
-  if(wpScanSetupString(pSetupString, "M3UOBJECTWINDOW", buffer,&bufferSize))
-    {
-      hwndObject=atol(buffer);
-    }
-
-  /* Set object pointer to M3U-File */
-  bufferSize=sizeof(buffer);
-  if(wpScanSetupString(pSetupString, "M3UOBJECTHANDLE", buffer,&bufferSize))
-    {
-      WPObject *wpObject;
-
-      wpObjM3UFile=NULLHANDLE;
-      wpObject=(WPObject*)atol(buffer);
-      if(somIsObj(wpObject))
-        wpObjM3UFile=wpObject;
-    }
-
-
-  /* FIXME: Use immediate parent here !!!! */
-  return CWMediaFolder::wpSetup(pSetupString);
-}
-#endif
 
 /*****************************************************/
@@ -592,6 +465,4 @@
       ULONG ulErr;
 
-      /* Remove the title added by XWP */
-      WinSetWindowText(hwnd, wpObjM3UFile->wpQueryTitle());
       if(!getMessage(text, IDSTR_PLAYLISTVIEWTITLE, sizeof(text), queryResModuleHandle(), HWND_DESKTOP))
         sprintf(text, "Playlist Editor");
