private void removeObservedFile(OCFile file,Account account){
  Log_OC.v(TAG,"Removing a file from being watched");
  if (file == null) {
    Log_OC.e(TAG,"Trying to remove a NULL file");
    return;
  }
  if (account == null) {
    Log_OC.e(TAG,"Trying to add a file with a NULL account to observer");
    return;
  }
  String localPath=file.getStoragePath();
  if (localPath == null || localPath.length() <= 0) {
    localPath=FileStorageUtils.getDefaultSavePathFor(account.name,file);
  }
  removeObservedFile(localPath);
}

private void removeObservedFile ( OCFile file , Account account ) { Log_OC . v ( TAG , "Removing a file from being watched" ) ; if ( file == null ) { Log_OC . e ( TAG , "Trying to remove a NULL file" ) ; return ; } if ( account == null ) { Log_OC . e ( TAG , "Trying to add a file with a NULL account to observer" ) ; return ; } String localPath = file . getStoragePath ( ) ; if ( localPath == null || localPath . length ( ) <= 0 ) { localPath = FileStorageUtils . getDefaultSavePathFor ( account . name , file ) ; } removeObservedFile ( localPath ) ; }
unregisters the local copy of a remote file to be observed for local changes .
