84161997c78fb7f23f9fdb62e8cafd850db6dc88 tdreszer Mon Nov 22 14:47:56 2010 -0800 Removed a lot of ifdefs whose time had come. Renamed one function for clarity. diff --git src/hg/lib/searchTracks.c src/hg/lib/searchTracks.c index 29a776b..4bcf67c 100644 --- src/hg/lib/searchTracks.c +++ src/hg/lib/searchTracks.c @@ -1,31 +1,27 @@ // Track Search code which is shared between different CGIs #include "searchTracks.h" #include "hdb.h" #include "hgConfig.h" #include "trix.h" #include "subText.h" #include "jsHelper.h" void getSearchTrixFile(char *database, char *buf, int len) // Fill-in the name of the track search trix file { char *trixPath = cfgOptionDefault("browser.trixPath", "/gbdb/$db/trackDb.ix"); struct subText *subList = subTextNew("$db", database); subTextStatic(subList, trixPath, buf, len); } boolean isSearchTracksSupported(char *database, struct cart *cart) // Return TRUE if searchTracks is supported for this database and javascript is supported too { -#ifdef TRACK_SEARCH if (!advancedJavascriptFeaturesEnabled(cart)) return FALSE; char trixFile[HDB_MAX_PATH_STRING]; getSearchTrixFile(database, trixFile, sizeof(trixFile)); return fileExists(trixFile); -#else -return FALSE; -#endif }