mirror of
https://git.v0l.io/Kieran/void.cat.git
synced 2025-03-29 16:01:43 +01:00
Remove unused method
This commit is contained in:
parent
23bb00c8b7
commit
0635aedc31
@ -8,7 +8,5 @@ public interface IFileMetadataStore
|
||||
|
||||
ValueTask Set(Guid id, SecretVoidFileMeta meta);
|
||||
|
||||
ValueTask Update(Guid id, SecretVoidFileMeta patch);
|
||||
|
||||
ValueTask Delete(Guid id);
|
||||
}
|
||||
|
@ -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);
|
||||
|
@ -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));
|
||||
|
@ -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>
|
||||
|
Loading…
x
Reference in New Issue
Block a user