55de7ef426a462247f89f48afd9aa6a2eb2cdd19
chmalee
  Thu Jan 16 17:11:17 2025 -0800
Remove a bunch of dead experimental hubspace code, and make sure to cgi-encode hub names, refs #35018

diff --git src/hg/hgHubConnect/trackHubWizard.c src/hg/hgHubConnect/trackHubWizard.c
index b4a9c42..a21592e 100644
--- src/hg/hgHubConnect/trackHubWizard.c
+++ src/hg/hgHubConnect/trackHubWizard.c
@@ -38,42 +38,30 @@
     {
     if (fileExists(fileName))
         {
         fprintf(stderr, "deleting file: '%s'\n", fileName);
         removeFileForUser(fileName, userName);
         fflush(stderr);
         }
     else
         {
         fprintf(stderr, "file '%s' does not exist\n", fileName);
         fflush(stderr);
         }
     }
 }
 
-void removeHubDir(char *userName, char *cgiFileName)
-/* Remove one single hub for userName */
-{
-char *hubDir = prefixUserFile(userName, cgiEncodeFull(cgiFileName), NULL);
-if (isDirectory(hubDir))
-    {
-    fprintf(stderr, "deleting directory: '%s'\n", hubDir);
-    removeHubForUser(hubDir, userName);
-    fflush(stderr);
-    }
-}
-
 void doRemoveFile(struct cartJson *cj, struct hash *paramHash)
 /* Process the request to remove a file */
 {
 char *userName = getUserName();
 if (userName)
     {
     // our array of objects, each object represents a track file
     struct jsonElement *deleteJson = hashFindVal(paramHash, "fileList");
     struct slRef *copy, *f, *fileList = deleteJson->val.jeList;
     struct slRef *dirList = NULL;
     jsonWriteListStart(cj->jw, "deletedList");
     for (f = fileList; f != NULL; )
         {
         struct jsonElement *fileObj = (struct jsonElement *)f->val;
         char *fileName = jsonStringField(fileObj, "fileName");