anchor.diff:  %%--------------------------------------------------------------------
   -spec delete_links(model_behaviour:model_config(), datastore:ext_key(), [datastore:link_name()] | all) ->
       ok | datastore:generic_error().
  -delete_links(#model_config{bucket = Bucket} = ModelConfig, Key, all) ->
  -    delete(ModelConfig, links_doc_key(Bucket, Key), ?PRED_ALWAYS);
  +delete_links(#model_config{bucket = _Bucket} = ModelConfig, Key, all) ->
  +    delete(ModelConfig, links_doc_key(Key), ?PRED_ALWAYS);
   delete_links(#model_config{name = ModelName, bucket = Bucket} = ModelConfig, Key, Links) ->
       datastore:run_synchronized(ModelName, to_binary({?MODULE, Bucket, Key}),
           fun() ->
  -            case get(ModelConfig, links_doc_key(Bucket, Key)) of
  +            case get(ModelConfig, links_doc_key(Key)) of
                   {ok, #document{value = #links{link_map = LinkMap}}} ->
                       delete_links4(ModelConfig, Key, Links, LinkMap);
                   {error, {not_found, _}} ->
  
positive.code: %% Returns key for document holding links for given document.
  %% @end
  %%--------------------------------------------------------------------
  -spec links_doc_key(Bucket :: atom(), Key :: datastore:key()) -> BinKey :: binary().
  links_doc_key(_Bucket, Key) when is_binary(Key) ->
      <<Key/binary, ?LINKS_KEY_SUFFIX>>;
  links_doc_key(_Bucket, Key) ->
      BinKey = term_to_binary(Key),
      <<BinKey/binary, ?LINKS_KEY_SUFFIX>>.
  -spec links_doc_key(Key :: datastore:key()) -> BinKey :: binary().
  links_doc_key(Key) ->
      base64:encode(term_to_binary({links, Key})).
  
negative.code:             end
          end
      ).
  
  
  -spec delete_links4(model_behaviour:model_config(), datastore:ext_key(), [datastore:normalized_link_spec()] | all, InternalCtx :: term()) ->
      ok | datastore:generic_error().
  