5db18ae05a21e122258f156fb5e62c15cfdf98f9
kent
  Mon Dec 9 11:28:37 2013 -0800
Removing jsonGlabalsHash from library routines.  Now it is restricted to hgTrackUi.
diff --git src/hg/lib/jsHelper.c src/hg/lib/jsHelper.c
index cade588..023310d 100644
--- src/hg/lib/jsHelper.c
+++ src/hg/lib/jsHelper.c
@@ -614,43 +614,29 @@
     if (indentLevel >= 0 )
         hPrintf("// START %s\n%s", name, indentBuf);
     hPrintf("var %s = ", name);
     }
 jsonPrintRecurse(json, (indentLevel - 1)); // will increment back to indentLevel
 if(name != NULL)
     {
     hPrintf("%s;\n", indentBuf);
     if (indentLevel >= 0 )
         hPrintf("// END %s\n", name);
     }
 if (indentLevel >= 0)
     freez(&indentBuf);
 }
 
-void jsonPrintGlobals(boolean wrapWithScriptTags)
-// prints out the "common" globals json hash
-// This hash is the one utils.js and therefore all CGIs know about
-{
-if (jsonGlobalsHash != NULL)
-    {
-    if (wrapWithScriptTags)
-        printf("<script type='text/javascript'>\n");
-    jsonPrint(jsonGlobalsHash, "common", 0);
-    if (wrapWithScriptTags)
-        printf("</script>\n");
-    }
-}
-
 void jsonErrPrintf(struct dyString *ds, char *format, ...)
 //  Printf a json error to a dyString for communicating with ajax code; format is:
 //  {"error": error message here}
 {
 va_list args;
 va_start(args, format);
 dyStringPrintf(ds, "{\"error\": \"");
 struct dyString *buf = newDyString(1000);
 dyStringVaPrintf(buf, format, args);
 dyStringAppend(ds, jsonStringEscape(dyStringCannibalize(&buf)));
 dyStringPrintf(ds, "\"}");
 va_end(args);
 }