Remove unused method

This commit is contained in:
Kieran 2022-03-01 19:17:02 +00:00
parent 23bb00c8b7
commit 0635aedc31
Signed by: Kieran
GPG Key ID: DE71CEB3925BE941
4 changed files with 3 additions and 18 deletions

View File

@ -8,7 +8,5 @@ public interface IFileMetadataStore
ValueTask Set(Guid id, SecretVoidFileMeta meta);
ValueTask Update(Guid id, SecretVoidFileMeta patch);
ValueTask Delete(Guid id);
}

View File

@ -35,17 +35,6 @@ public class LocalDiskFileMetadataStore : IFileMetadataStore
await File.WriteAllTextAsync(path, json);
}
public async ValueTask Update(Guid id, SecretVoidFileMeta patch)
{
var oldMeta = await Get<SecretVoidFileMeta>(id);
if (oldMeta?.EditSecret != patch.EditSecret)
{
throw new VoidNotAllowedException("Edit secret incorrect");
}
await Set(id, patch);
}
public ValueTask Delete(Guid id)
{
var path = MapMeta(id);

View File

@ -48,11 +48,6 @@ public class S3FileMetadataStore : IFileMetadataStore
});
}
public ValueTask Update(Guid id, SecretVoidFileMeta patch)
{
throw new NotImplementedException();
}
public async ValueTask Delete(Guid id)
{
await _client.DeleteObjectAsync(_config.BucketName, ToKey(id));

View File

@ -32,6 +32,9 @@
<Content Include="..\nospa.dockerfile">
<Link>nospa.dockerfile</Link>
</Content>
<Content Include="..\README.md">
<Link>README.md</Link>
</Content>
<None Remove="$(SpaRoot)**" />
<None Include="$(SpaRoot)**" Exclude="$(SpaRoot)node_modules\**" />
</ItemGroup>