1
0
mirror of https://github.com/sqlite/sqlite.git synced 2025-08-07 02:42:48 +03:00

Remove the noop-mutex implementations of mutex_held() and mutex_notheld()

since they are both unreachable.

FossilOrigin-Name: 6767b62a9a063582889f5ceb42f95eab24c697da
This commit is contained in:
drh
2010-05-06 11:56:52 +00:00
parent 24e3971197
commit e404de05c0
3 changed files with 12 additions and 14 deletions

View File

@@ -34,8 +34,6 @@
**
** This routines provide no mutual exclusion or error checking.
*/
static int noopMutexHeld(sqlite3_mutex *p){ return 1; }
static int noopMutexNotheld(sqlite3_mutex *p){ return 1; }
static int noopMutexInit(void){ return SQLITE_OK; }
static int noopMutexEnd(void){ return SQLITE_OK; }
static sqlite3_mutex *noopMutexAlloc(int id){ return (sqlite3_mutex*)8; }
@@ -54,8 +52,8 @@ sqlite3_mutex_methods *sqlite3NoopMutex(void){
noopMutexTry,
noopMutexLeave,
noopMutexHeld,
noopMutexNotheld
0,
0,
};
return &sMutex;