Revert "oc: cached usercontext updates indexing_context"

This reverts commit 0750f64b787db088e944756b66fbd0883cf44cbf.
pull/69/head
Jesús García Sáez 2014-08-28 04:14:06 +02:00 committed by Julio García
parent 05578bfcb6
commit bb9764bc6b
4 changed files with 1 additions and 21 deletions

View File

@ -42,7 +42,6 @@
- (id) initForUsername: (NSString *) username
withIndexing: (struct indexing_context *) indexing;
- (void) updateIndexing: (struct indexing_context *) indexing;
- (void) increaseUseCount;
- (void) decreaseUseCount;

View File

@ -119,11 +119,6 @@ MAPIStoreMappingKeyFromId (uint64_t idNbr)
return self;
}
- (void) updateIndexing: (struct indexing_context *) newIndexing
{
indexing = newIndexing;
}
- (void) dealloc
{
[username release];

View File

@ -68,8 +68,6 @@
- (id) initWithUsername: (NSString *) newUsername
andTDBIndexing: (struct indexing_context *) indexing;
- (void) updateIndexing: (struct indexing_context *) indexing;
- (NSString *) username;
- (SOGoUser *) sogoUser;

View File

@ -65,14 +65,7 @@ static NSMapTable *contextsTable = nil;
id userContext;
userContext = [contextsTable objectForKey: username];
if (userContext)
{
// The indexing_context used when this user context was created
// could had been freed, so we have to update it and use the one
// that we receive as parameter (which is a valid one for sure).
[userContext updateIndexing: indexing];
}
else
if (!userContext)
{
userContext = [[self alloc] initWithUsername: username
andTDBIndexing: indexing];
@ -83,11 +76,6 @@ static NSMapTable *contextsTable = nil;
return userContext;
}
- (void) updateIndexing: (struct indexing_context *) indexing
{
[mapping updateIndexing: indexing];
}
- (id) init
{
if ((self = [super init]))