Fossil SCM
This function also is no longer needed at this point.
Commit
8b9b44515ef2fd34b78338e8ab532cba5780489a
Parent
ae6f27004b4210d…
1 file changed
-21
-21
| --- src/name.c | ||
| +++ src/name.c | ||
| @@ -266,31 +266,10 @@ | ||
| 266 | 266 | } |
| 267 | 267 | } |
| 268 | 268 | return rid; |
| 269 | 269 | } |
| 270 | 270 | |
| 271 | -/* | |
| 272 | -** Return the ticket id from the ticket table if found. If more than one | |
| 273 | -** is found, return -1 to indicate ambiguity. | |
| 274 | -*/ | |
| 275 | -int symbolic_name_to_tktid(const char *zTag){ | |
| 276 | - int tktid = 0; | |
| 277 | - Stmt q; | |
| 278 | - | |
| 279 | - if( strlen(zTag)>=4 && | |
| 280 | - strlen(zTag)<=UUID_SIZE && validate16(zTag, strlen(zTag)) ) { | |
| 281 | - db_prepare(&q, "SELECT tkt_id FROM ticket" | |
| 282 | - " WHERE tkt_uuid GLOB '%s*'", zTag ); | |
| 283 | - if( db_step(&q)==SQLITE_ROW ){ | |
| 284 | - tktid = db_column_int(&q, 0); | |
| 285 | - if( db_step(&q)==SQLITE_ROW ) tktid = -1; | |
| 286 | - } | |
| 287 | - db_finalize(&q); | |
| 288 | - } | |
| 289 | - return tktid; | |
| 290 | -} | |
| 291 | - | |
| 292 | 271 | /* |
| 293 | 272 | ** This routine takes a user-entered UUID which might be in mixed |
| 294 | 273 | ** case and might only be a prefix of the full UUID and converts it |
| 295 | 274 | ** into the full-length UUID in canonical form. |
| 296 | 275 | ** |
| 297 | 276 |
| --- src/name.c | |
| +++ src/name.c | |
| @@ -266,31 +266,10 @@ | |
| 266 | } |
| 267 | } |
| 268 | return rid; |
| 269 | } |
| 270 | |
| 271 | /* |
| 272 | ** Return the ticket id from the ticket table if found. If more than one |
| 273 | ** is found, return -1 to indicate ambiguity. |
| 274 | */ |
| 275 | int symbolic_name_to_tktid(const char *zTag){ |
| 276 | int tktid = 0; |
| 277 | Stmt q; |
| 278 | |
| 279 | if( strlen(zTag)>=4 && |
| 280 | strlen(zTag)<=UUID_SIZE && validate16(zTag, strlen(zTag)) ) { |
| 281 | db_prepare(&q, "SELECT tkt_id FROM ticket" |
| 282 | " WHERE tkt_uuid GLOB '%s*'", zTag ); |
| 283 | if( db_step(&q)==SQLITE_ROW ){ |
| 284 | tktid = db_column_int(&q, 0); |
| 285 | if( db_step(&q)==SQLITE_ROW ) tktid = -1; |
| 286 | } |
| 287 | db_finalize(&q); |
| 288 | } |
| 289 | return tktid; |
| 290 | } |
| 291 | |
| 292 | /* |
| 293 | ** This routine takes a user-entered UUID which might be in mixed |
| 294 | ** case and might only be a prefix of the full UUID and converts it |
| 295 | ** into the full-length UUID in canonical form. |
| 296 | ** |
| 297 |
| --- src/name.c | |
| +++ src/name.c | |
| @@ -266,31 +266,10 @@ | |
| 266 | } |
| 267 | } |
| 268 | return rid; |
| 269 | } |
| 270 | |
| 271 | /* |
| 272 | ** This routine takes a user-entered UUID which might be in mixed |
| 273 | ** case and might only be a prefix of the full UUID and converts it |
| 274 | ** into the full-length UUID in canonical form. |
| 275 | ** |
| 276 |