Skip to content

Commit

Permalink
No longer used.
Browse files Browse the repository at this point in the history
  • Loading branch information
mrubinsk committed Oct 16, 2013
1 parent 36de5a5 commit bb70216
Showing 1 changed file with 0 additions and 36 deletions.
36 changes: 0 additions & 36 deletions framework/ActiveSync/lib/Horde/ActiveSync/State/Mongo.php
Expand Up @@ -1283,42 +1283,6 @@ protected function _getMailMapChanges(array $changes)
return $results;
}

/**
* Perform the change query.
*
* @param string $id The object id
* @param integer $flag The flag value.
* @param string $field The field containing the change type.
*
* @return boolean
* @throws Horde_ActiveSync_Exception
*/
protected function _isPIMChangeQuery($id, $flag, $field)
{
$query = array(
'sync_devid' => $this->_deviceInfo->id,
'sync_user' => $this->_deviceInfo->user,
'sync_folderid' => $this->_collection['id'],
'message_uid' => "$id",
);

try {
$result = $this->_db->mailmap->findOne(
$query,
array($field)
);
} catch (Exception $e) {
$this->_logger->err($e->getMessage());
throw new Horde_ActiveSync_Exception($e);
}

if (empty($result)) {
return false;
}

return $result[$field] == $flag;
}

/**
* Garbage collector - clean up from previous sync requests.
*
Expand Down

0 comments on commit bb70216

Please sign in to comment.