Fossil SCM

TAG_BRANCH is unused in this query

jan.nijtmans 2013-11-27 14:07 UTC trunk
Commit 170c3c73632ac83439ebaa237df450e6ae7eb746
1 file changed +1 -5
+1 -5
--- src/timeline.c
+++ src/timeline.c
@@ -903,11 +903,10 @@
903903
/*
904904
** Return a pointer to a constant string that forms the basis
905905
** for a timeline query for the WWW interface.
906906
*/
907907
const char *timeline_query_for_www(void){
908
- static char *zBase = 0;
909908
static const char zBaseSql[] =
910909
@ SELECT
911910
@ blob.rid AS blobRid,
912911
@ uuid AS uuid,
913912
@ datetime(event.mtime,'localtime') AS timestamp,
@@ -923,14 +922,11 @@
923922
@ brief AS brief,
924923
@ event.mtime AS mtime
925924
@ FROM event CROSS JOIN blob
926925
@ WHERE blob.rid=event.objid
927926
;
928
- if( zBase==0 ){
929
- zBase = mprintf(zBaseSql, TAG_BRANCH, TAG_BRANCH);
930
- }
931
- return zBase;
927
+ return zBaseSql;
932928
}
933929
934930
/*
935931
** Generate a submenu element with a single parameter change.
936932
*/
937933
--- src/timeline.c
+++ src/timeline.c
@@ -903,11 +903,10 @@
903 /*
904 ** Return a pointer to a constant string that forms the basis
905 ** for a timeline query for the WWW interface.
906 */
907 const char *timeline_query_for_www(void){
908 static char *zBase = 0;
909 static const char zBaseSql[] =
910 @ SELECT
911 @ blob.rid AS blobRid,
912 @ uuid AS uuid,
913 @ datetime(event.mtime,'localtime') AS timestamp,
@@ -923,14 +922,11 @@
923 @ brief AS brief,
924 @ event.mtime AS mtime
925 @ FROM event CROSS JOIN blob
926 @ WHERE blob.rid=event.objid
927 ;
928 if( zBase==0 ){
929 zBase = mprintf(zBaseSql, TAG_BRANCH, TAG_BRANCH);
930 }
931 return zBase;
932 }
933
934 /*
935 ** Generate a submenu element with a single parameter change.
936 */
937
--- src/timeline.c
+++ src/timeline.c
@@ -903,11 +903,10 @@
903 /*
904 ** Return a pointer to a constant string that forms the basis
905 ** for a timeline query for the WWW interface.
906 */
907 const char *timeline_query_for_www(void){
 
908 static const char zBaseSql[] =
909 @ SELECT
910 @ blob.rid AS blobRid,
911 @ uuid AS uuid,
912 @ datetime(event.mtime,'localtime') AS timestamp,
@@ -923,14 +922,11 @@
922 @ brief AS brief,
923 @ event.mtime AS mtime
924 @ FROM event CROSS JOIN blob
925 @ WHERE blob.rid=event.objid
926 ;
927 return zBaseSql;
 
 
 
928 }
929
930 /*
931 ** Generate a submenu element with a single parameter change.
932 */
933

Keyboard Shortcuts

Open search /
Next entry (timeline) j
Previous entry (timeline) k
Open focused entry Enter
Show this help ?
Toggle theme Top nav button