Fossil SCM
Remove unused code from previous fork warning method.
Commit
bc1e943fec5fa4159e0617d7e9f58ed7473c627a
Parent
731042d5ea4105f…
2 files changed
-18
+2
-3
-18
| --- src/leaf.c | ||
| +++ src/leaf.c | ||
| @@ -73,28 +73,10 @@ | ||
| 73 | 73 | } |
| 74 | 74 | db_reset(&q); |
| 75 | 75 | return nNonBranch; |
| 76 | 76 | } |
| 77 | 77 | |
| 78 | -/* | |
| 79 | -** Return the primary parent pid given a child rid | |
| 80 | -*/ | |
| 81 | -int primary_parent_pid_from_rid(int rid){ | |
| 82 | - static Stmt q; | |
| 83 | - int pid = -1; | |
| 84 | - | |
| 85 | - db_static_prepare(&q, | |
| 86 | - "SELECT pid FROM plink WHERE cid=:rid AND pid>0 AND isprim" | |
| 87 | - ); | |
| 88 | - db_bind_int(&q, ":rid", rid); | |
| 89 | - if( db_step(&q)==SQLITE_ROW ){ | |
| 90 | - pid = db_column_int(&q, 0); | |
| 91 | - } | |
| 92 | - db_reset(&q); | |
| 93 | - return pid; | |
| 94 | -} | |
| 95 | - | |
| 96 | 78 | /* |
| 97 | 79 | ** Recompute the entire LEAF table. |
| 98 | 80 | ** |
| 99 | 81 | ** This can be expensive (5 seconds or so) for a really large repository. |
| 100 | 82 | ** So it is only done for things like a rebuild. |
| 101 | 83 |
| --- src/leaf.c | |
| +++ src/leaf.c | |
| @@ -73,28 +73,10 @@ | |
| 73 | } |
| 74 | db_reset(&q); |
| 75 | return nNonBranch; |
| 76 | } |
| 77 | |
| 78 | /* |
| 79 | ** Return the primary parent pid given a child rid |
| 80 | */ |
| 81 | int primary_parent_pid_from_rid(int rid){ |
| 82 | static Stmt q; |
| 83 | int pid = -1; |
| 84 | |
| 85 | db_static_prepare(&q, |
| 86 | "SELECT pid FROM plink WHERE cid=:rid AND pid>0 AND isprim" |
| 87 | ); |
| 88 | db_bind_int(&q, ":rid", rid); |
| 89 | if( db_step(&q)==SQLITE_ROW ){ |
| 90 | pid = db_column_int(&q, 0); |
| 91 | } |
| 92 | db_reset(&q); |
| 93 | return pid; |
| 94 | } |
| 95 | |
| 96 | /* |
| 97 | ** Recompute the entire LEAF table. |
| 98 | ** |
| 99 | ** This can be expensive (5 seconds or so) for a really large repository. |
| 100 | ** So it is only done for things like a rebuild. |
| 101 |
| --- src/leaf.c | |
| +++ src/leaf.c | |
| @@ -73,28 +73,10 @@ | |
| 73 | } |
| 74 | db_reset(&q); |
| 75 | return nNonBranch; |
| 76 | } |
| 77 | |
| 78 | /* |
| 79 | ** Recompute the entire LEAF table. |
| 80 | ** |
| 81 | ** This can be expensive (5 seconds or so) for a really large repository. |
| 82 | ** So it is only done for things like a rebuild. |
| 83 |
+2
-3
| --- src/xfer.c | ||
| +++ src/xfer.c | ||
| @@ -232,11 +232,10 @@ | ||
| 232 | 232 | ** Any artifact successfully received by this routine is considered to |
| 233 | 233 | ** be public and is therefore removed from the "private" table. |
| 234 | 234 | */ |
| 235 | 235 | static void xfer_accept_compressed_file( |
| 236 | 236 | Xfer *pXfer, |
| 237 | - int cloneFlag, | |
| 238 | 237 | char **pzUuidList, |
| 239 | 238 | int *pnUuidList |
| 240 | 239 | ){ |
| 241 | 240 | int szC; /* CSIZE */ |
| 242 | 241 | int szU; /* USIZE */ |
| @@ -1015,11 +1014,11 @@ | ||
| 1015 | 1014 | cgi_reset_content(); |
| 1016 | 1015 | @ error not\sauthorized\sto\swrite |
| 1017 | 1016 | nErr++; |
| 1018 | 1017 | break; |
| 1019 | 1018 | } |
| 1020 | - xfer_accept_compressed_file(&xfer, 0, pzUuidList, pnUuidList); | |
| 1019 | + xfer_accept_compressed_file(&xfer, pzUuidList, pnUuidList); | |
| 1021 | 1020 | if( blob_size(&xfer.err) ){ |
| 1022 | 1021 | cgi_reset_content(); |
| 1023 | 1022 | @ error %T(blob_str(&xfer.err)) |
| 1024 | 1023 | nErr++; |
| 1025 | 1024 | break; |
| @@ -1678,11 +1677,11 @@ | ||
| 1678 | 1677 | ** cfile UUID DELTASRC USIZE CSIZE \n CONTENT |
| 1679 | 1678 | ** |
| 1680 | 1679 | ** Receive a compressed file transmitted from the server. |
| 1681 | 1680 | */ |
| 1682 | 1681 | if( blob_eq(&xfer.aToken[0],"cfile") ){ |
| 1683 | - xfer_accept_compressed_file(&xfer, (syncFlags & SYNC_CLONE)!=0, 0, 0); | |
| 1682 | + xfer_accept_compressed_file(&xfer, 0, 0); | |
| 1684 | 1683 | nArtifactRcvd++; |
| 1685 | 1684 | }else |
| 1686 | 1685 | |
| 1687 | 1686 | /* gimme UUID |
| 1688 | 1687 | ** |
| 1689 | 1688 |
| --- src/xfer.c | |
| +++ src/xfer.c | |
| @@ -232,11 +232,10 @@ | |
| 232 | ** Any artifact successfully received by this routine is considered to |
| 233 | ** be public and is therefore removed from the "private" table. |
| 234 | */ |
| 235 | static void xfer_accept_compressed_file( |
| 236 | Xfer *pXfer, |
| 237 | int cloneFlag, |
| 238 | char **pzUuidList, |
| 239 | int *pnUuidList |
| 240 | ){ |
| 241 | int szC; /* CSIZE */ |
| 242 | int szU; /* USIZE */ |
| @@ -1015,11 +1014,11 @@ | |
| 1015 | cgi_reset_content(); |
| 1016 | @ error not\sauthorized\sto\swrite |
| 1017 | nErr++; |
| 1018 | break; |
| 1019 | } |
| 1020 | xfer_accept_compressed_file(&xfer, 0, pzUuidList, pnUuidList); |
| 1021 | if( blob_size(&xfer.err) ){ |
| 1022 | cgi_reset_content(); |
| 1023 | @ error %T(blob_str(&xfer.err)) |
| 1024 | nErr++; |
| 1025 | break; |
| @@ -1678,11 +1677,11 @@ | |
| 1678 | ** cfile UUID DELTASRC USIZE CSIZE \n CONTENT |
| 1679 | ** |
| 1680 | ** Receive a compressed file transmitted from the server. |
| 1681 | */ |
| 1682 | if( blob_eq(&xfer.aToken[0],"cfile") ){ |
| 1683 | xfer_accept_compressed_file(&xfer, (syncFlags & SYNC_CLONE)!=0, 0, 0); |
| 1684 | nArtifactRcvd++; |
| 1685 | }else |
| 1686 | |
| 1687 | /* gimme UUID |
| 1688 | ** |
| 1689 |
| --- src/xfer.c | |
| +++ src/xfer.c | |
| @@ -232,11 +232,10 @@ | |
| 232 | ** Any artifact successfully received by this routine is considered to |
| 233 | ** be public and is therefore removed from the "private" table. |
| 234 | */ |
| 235 | static void xfer_accept_compressed_file( |
| 236 | Xfer *pXfer, |
| 237 | char **pzUuidList, |
| 238 | int *pnUuidList |
| 239 | ){ |
| 240 | int szC; /* CSIZE */ |
| 241 | int szU; /* USIZE */ |
| @@ -1015,11 +1014,11 @@ | |
| 1014 | cgi_reset_content(); |
| 1015 | @ error not\sauthorized\sto\swrite |
| 1016 | nErr++; |
| 1017 | break; |
| 1018 | } |
| 1019 | xfer_accept_compressed_file(&xfer, pzUuidList, pnUuidList); |
| 1020 | if( blob_size(&xfer.err) ){ |
| 1021 | cgi_reset_content(); |
| 1022 | @ error %T(blob_str(&xfer.err)) |
| 1023 | nErr++; |
| 1024 | break; |
| @@ -1678,11 +1677,11 @@ | |
| 1677 | ** cfile UUID DELTASRC USIZE CSIZE \n CONTENT |
| 1678 | ** |
| 1679 | ** Receive a compressed file transmitted from the server. |
| 1680 | */ |
| 1681 | if( blob_eq(&xfer.aToken[0],"cfile") ){ |
| 1682 | xfer_accept_compressed_file(&xfer, 0, 0); |
| 1683 | nArtifactRcvd++; |
| 1684 | }else |
| 1685 | |
| 1686 | /* gimme UUID |
| 1687 | ** |
| 1688 |