mirror of
https://github.com/wabbajack-tools/wabbajack.git
synced 2024-08-30 18:42:17 +00:00
cleanup
This commit is contained in:
parent
e61b203d4c
commit
35897bbf92
@ -1,42 +0,0 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
using System.Threading.Tasks.Sources;
|
||||
|
||||
namespace Wabbajack.Common.CSP
|
||||
{
|
||||
public struct Box<T>
|
||||
{
|
||||
public T Value;
|
||||
public bool IsSet;
|
||||
|
||||
public Box(T value)
|
||||
{
|
||||
Value = value;
|
||||
IsSet = true;
|
||||
}
|
||||
|
||||
|
||||
public static Box<T> Empty = new Box<T>();
|
||||
}
|
||||
|
||||
class test : IValueTaskSource
|
||||
{
|
||||
public ValueTaskSourceStatus GetStatus(short token)
|
||||
{
|
||||
throw new NotImplementedException();
|
||||
}
|
||||
|
||||
public void OnCompleted(Action<object> continuation, object state, short token, ValueTaskSourceOnCompletedFlags flags)
|
||||
{
|
||||
throw new NotImplementedException();
|
||||
}
|
||||
|
||||
public void GetResult(short token)
|
||||
{
|
||||
throw new NotImplementedException();
|
||||
}
|
||||
}
|
||||
}
|
@ -1,29 +0,0 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Runtime.InteropServices;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
namespace Wabbajack.Common.CSP
|
||||
{
|
||||
public class FnHandler<T> : Handler<T>
|
||||
{
|
||||
private readonly bool _blockable;
|
||||
private T _f;
|
||||
|
||||
public FnHandler(T f, bool blockable=false)
|
||||
{
|
||||
_f = f;
|
||||
_blockable = blockable;
|
||||
}
|
||||
|
||||
public bool IsActive => true;
|
||||
public bool IsBlockable => _blockable;
|
||||
public uint LockId => 0;
|
||||
public T Commit()
|
||||
{
|
||||
return _f;
|
||||
}
|
||||
}
|
||||
}
|
@ -85,17 +85,13 @@
|
||||
<Reference Include="System.Xml" />
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<Compile Include="AsyncWorkQueue.cs" />
|
||||
<Compile Include="AsyncWorkQueueExtensions.cs" />
|
||||
<Compile Include="BSDiff.cs" />
|
||||
<Compile Include="ChildProcessTracker.cs" />
|
||||
<Compile Include="Consts.cs" />
|
||||
<Compile Include="CSP\AChannel.cs" />
|
||||
<Compile Include="CSP\Box.cs" />
|
||||
<Compile Include="CSP\Channel.cs" />
|
||||
<Compile Include="CSP\CSPExtensions.cs" />
|
||||
<Compile Include="CSP\FixedSizeBuffer.cs" />
|
||||
<Compile Include="CSP\FnHandler.cs" />
|
||||
<Compile Include="CSP\IBuffer.cs" />
|
||||
<Compile Include="CSP\Handler.cs" />
|
||||
<Compile Include="CSP\IChannel.cs" />
|
||||
|
@ -93,7 +93,6 @@
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<Compile Include="ACompilerTest.cs" />
|
||||
<Compile Include="CSP\AsyncWorkQueueTests.cs" />
|
||||
<Compile Include="CSP\ChannelTests.cs" />
|
||||
<Compile Include="CSP\CSPTests.cs" />
|
||||
<Compile Include="DownloaderTests.cs" />
|
||||
|
Loading…
Reference in New Issue
Block a user