Skip to content

Commit

Permalink
remove useless scope
Browse files Browse the repository at this point in the history
  • Loading branch information
kubo39 committed May 30, 2024
1 parent 44c1d90 commit b62c9e0
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions source/sievecache/package.d
Original file line number Diff line number Diff line change
Expand Up @@ -81,13 +81,13 @@ struct SieveCache(K, V) if (isEqualityComparable!K && isKeyableType!K)
/**
* Supports $(B key in aa) syntax.
*/
scope V* opBinaryRight(string op)(K key) nothrow pure if (op == "in")
V* opBinaryRight(string op)(K key) nothrow pure if (op == "in")
{
return get(key);
}

/// Ditto.
scope shared(V)* opBinaryRight(string op)(K key) shared if (op == "in")
shared(V)* opBinaryRight(string op)(K key) shared if (op == "in")
{
return get(key);
}
Expand Down Expand Up @@ -137,7 +137,7 @@ struct SieveCache(K, V) if (isEqualityComparable!K && isKeyableType!K)
* by `key`.
* If no value exists for `key`, returns `null`.
*/
scope V* get(K key) @nogc nothrow pure
V* get(K key) @nogc nothrow pure
{
Node!(K, V)** nodePtr = key in aa_;
if (nodePtr is null)
Expand All @@ -149,7 +149,7 @@ struct SieveCache(K, V) if (isEqualityComparable!K && isKeyableType!K)
}

/// Ditto.
scope shared(V)* get(K key) shared @nogc nothrow
shared(V)* get(K key) shared @nogc nothrow
{
synchronized
{
Expand Down

0 comments on commit b62c9e0

Please sign in to comment.